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
PointerInputConv.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 
19  :public dscomponents.AInputConv {
39  private:
40 
41  Target;
42 
43 
44  public:
45 
46  PointerInputConv(funPtr) {
47  if ~isa(funPtr," function_handle ")
48  error(" Argument funPtr must be a function handle. ");
49  elseif nargin(funPtr) ~= 2
50  error(" funPtr nargin must equal two (= t,mu). ");
51  end
52  this.Target= funPtr;
53  }
61  function B = evaluate(double t,colvec<double> mu) {
62  B = this.Target(t,mu);
63  }
74  function proj = project(V,W) {
75  newfun = @(t,mu)W^t * this.Target(t,mu);
76  proj = dscomponents.PointerInputConv(newfun);
77  /* Dont store V,W due to hard drive space saving (not really needed here, W will be
78  * stored in function handle anyways)
79  *proj = project@general.AProjectable(this, V, W, proj); */
80  }
91  function copy = clone() {
92  copy = dscomponents.PointerInputConv(this.Target);
93  }
94 
95 
96 };
97 }
98 
99 
100 
AInputConv: Base class for input conversion "B". For simpler input conversions, it will be convenient...
Definition: AInputConv.m:18
PointerInputConv(funPtr)
Creates a new wrapper for a core function handle.
function B = evaluate(double t,colvec< double > mu)
Evaluates the core function at t,mu.
function proj = project(V, W)
Projects the core function into the reduced space. Creates a new PointerInputConv and computes ...
V
The matrix of the biorthogonal pair .
Definition: AProjectable.m:61
POINTERINPUTCONV Allows for input converters provided by function handles.
W
The matrix of the biorthogonal pair .
Definition: AProjectable.m:72