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
FinDiffBlockData.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 
43  public:
44 
45  FinDiffBlockData(original) {
46  if ~isa(original," data.ABlockedData ")
47  error(" Only data.ABlockedData instances are allowed ");
48  end
49  this.orig= original;
50  }
51 
52 
53  function prod = mtimes() {
54  prod = mtimes(matrix,this.orig);
55  }
56 
57 
58  function n = getNumBlocks() {
59  n = this.orig.getNumBlocks;
60  }
61 
62 
63  function B = getBlock(nr) {
64  B = this.orig.getBlock(nr);
65  B = [B diff(B,1,2)];
66  }
67 
68 
69  function [n , m ] = size(dim) {
70  n = [size(this.orig,1) 2*size(this.orig,2)-this.getNumBlocks];
71  if nargin == 2
72  if dim > 0 && dim < 3
73  n = n(dim);
74  else
75  n = 0;
76  end
77  elseif nargout == 2
78  m = n(2);
79  n = n(1);
80  end
81  }
82 
83 
84 };
85 }
86 
function n = getNumBlocks()
A matlab matrix.
function [ n , m ] = size(dim)
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)
FinDiffBlockData: Wrapper for block data that adds finite differences of the block data...
function prod = mtimes()