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
PointerInitialValue.m
Go to the documentation of this file.
1 namespace dscomponents{
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 
36  private:
37 
38  target;
39 
40 
41  public:
42 
44  this = this@dscomponents.AInitialValue;
45  if isa(ptr," function_handle ")
46  this.target= ptr;
47  else
48  error(" Argument ptr must be a function handle. ");
49  end
50  }
59  function x0 = evaluate(mu) {
60  x0 = this.target(mu);
61  }
71  function proj = project(V,W) {
72 
73  newfun = @(mu)W^t * this.target(mu);
74  proj = dscomponents.PointerInitialValue(newfun);
75  /* Dont store V,W due to hard drive space saving (not really needed here, W will be
76  * stored in function handle anyways)
77  *proj = project@general.AProjectable(this, V, W, proj); */
78  }
88  function copy = clone() {
89  copy = dscomponents.PointerInitialValue(this.target);
90  }
91 
92 
93 
94 };
95 }
96 
function proj = project(V, W)
Projects the initial value function into the reduced space. Creates a new PointerInitialValue and com...
A MatLab function handle.
function x0 = evaluate(mu)
Evaluates the initial value for a given mu.
PointerInitialValue: Allows initial values using function pointers for actual evaluation.
AInitialValue: Abstract base class for dynamical systems initial values.
Definition: AInitialValue.m:18
PointerInitialValue(function_handle ptr)
Creates a new pointer initial value.
V
The matrix of the biorthogonal pair .
Definition: AProjectable.m:61
W
The matrix of the biorthogonal pair .
Definition: AProjectable.m:72