1 namespace dscomponents{
44 if ~isa(funPtr,
" function_handle ")
45 error(
" Argument funPtr must be a function handle. ");
46 elseif nargin(funPtr) ~= 2
47 error(
" funPtr nargin must equal two (= t,mu). ");
66 B = this.Target(t,mu);
79 newfun = @(
t,mu)this.Target(
t,mu) *
V;
80 proj = dscomponents.PointerOutputConv(newfun, this.
TimeDependent);
PointerOutputConv(funPtr, time_dependent)
Creates a new wrapper for a core function handle.
function proj = project(V, W)
Projects the core function into the reduced space. Creates a new PointerOutputConv and computes ...
POINTEROUTPUTCONV Allows for input converters provided by function handles.
function B = evaluate(double t,colvec< double > mu)
Evaluates the core function at t,mu.
V
The matrix of the biorthogonal pair .
logical TimeDependent
Flag whether the output converter actually depends on a time variable. Implemented for speed reasons ...
W
The matrix of the biorthogonal pair .
BASEOUTPUTCONV Base class for output conversion "C". For simpler output conversions, it will be convenient to simply use the Pointer versions and pass the target function. For more complex output calculations which require local setup for example subclass this class and implement the evaluate method.