KerMor  0.9
Model order reduction for nonlinear dynamical systems and nonlinear approximation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ManualReduction.m
Go to the documentation of this file.
1 namespace spacereduction{
2 
3 
4 /* (Autoinserted by mtoc++)
5  * This source code has been filtered by the mtoc++ executable,
6  * which generates code that can be processed by the doxygen documentation tool.
7  *
8  * On the other hand, it can neither be interpreted by MATLAB, nor can it be compiled with a C++ compiler.
9  * Except for the comments, the function bodies of your M-file functions are untouched.
10  * Consequently, the FILTER_SOURCE_FILES doxygen switch (default in our Doxyfile.template) will produce
11  * attached source files that are highly readable by humans.
12  *
13  * Additionally, links in the doxygen generated documentation to the source code of functions and class members refer to
14  * the correct locations in the source code browser.
15  * However, the line numbers most likely do not correspond to the line numbers in the original MATLAB source files.
16  */
17 
26  private:
27 
28  V;
29 
30  W;
31 
32 
33  public:
34 
35 
37  this.V= V;
38  if nargin == 1
39  if ~isequal(round(V" *V),eye(size(V,2))) || sum(sum(V "*V-eye(size(V,2)))) > 100*eps
40  error(" If no W is given, V must be orthogonal! ");
41  end
42  this.W= V;
43  else
44  if ~isequal(round(W" *V),eye(size(W,2))) || sum(sum(W "*V-eye(size(W,2)))) > sqrt(eps)
45  error(" V and W must be bi-orthogonal! ");
46  end
47  this.W= W;
48  end
49  }
59  protected:
60 
61 
62  function [V , W ] = generateReducedSpaceImpl(models.BaseFullModel model,subset) {
63  V = this.V(subset,:);
64  W = [];
65  if ~isempty(this.W)
66  W = this.W(subset,:);
67  end
68  }
80 };
81 }
82 
83 
84 
ManualReduction(V, W)
Creates a manual space reducer with given matrices and .
The base class for any KerMor detailed model.
Definition: BaseFullModel.m:18
function [ V , W ] = generateReducedSpaceImpl(models.BaseFullModel model, subset)
Simply returns the manually selected values.
Allows manual selection of the projection matrices and .
Base class for all space reduction algorithms.