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
AxBlockData.m
Go to the documentation of this file.
1 namespace data{
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 data.ABlockedData {
38  private:
39 
40  orig;
41 
42  fun;
43 
44 
45  times;
53  public:
54 
55  AxBlockData(original,fun,times) {
56  if ~isa(original," data.ATrajectoryData ")
57  error(" Only data.ATrajectoryData instances can be wrapped ");
58  end
59  if ~isa(fun, " dscomponents.ACoreFun ")
60  error(" Fun argument must be a dscomponents.ACoreFun ");
61  end
62  this.orig= original;
63  this.fun= fun;
64  this.times= times;
65  }
66 
67 
68  function prod = mtimes() {
69  prod = mtimes(matrix,this.orig);
70  }
71 
72 
73  function n = getNumBlocks() {
74  n = this.orig.getNumBlocks;
75  }
76 
77 
78  function B = getBlock(nr) {
79  [B, mu] = this.orig.getTrajectoryNr(nr);
80  if ~this.fun.TimeDependent
81  B = this.fun.evaluate(B,[],mu);
82  else
83  B = this.fun.evaluate(B,this.times,repmat(mu,1,length(this.times)));
84  end
85  }
86 
87 
88  function [n , m ] = size(dim) {
89  n = size(this.orig);
90  if nargin == 2
91  if dim > 0 && dim < 3
92  n = n(dim);
93  else
94  n = 0;
95  end
96  elseif nargout == 2
97  m = n(2);
98  n = n(1);
99  end
100  }
101 
102 
103 };
104 }
105 
function prod = mtimes()
Definition: AxBlockData.m:68
A matlab matrix.
ABlockedData: General abstract class that allows computation of and SVD on a large matrix that is sep...
Definition: ABlockedData.m:18
function B = getBlock(nr)
Definition: AxBlockData.m:78
AxBlockData(original, fun, times)
Definition: AxBlockData.m:55
function [ n , m ] = size(dim)
Definition: AxBlockData.m:88
function n = getNumBlocks()
Definition: AxBlockData.m:73
AxBlockData: Wrapper for block data that computes A(x) of the block data.
Definition: AxBlockData.m:18