C++ main module for emicrom Package  1.0
MATH_LeafBlockMatrixStorage.h
Go to the documentation of this file.
1 #ifndef MATH_LeafBlockMatrixStorage_H
2 #define MATH_LeafBlockMatrixStorage_H
3 
4 #include "CORE_Object.h"
5 
6 
21 
24 
25 public:
26 
27 
28 
29 private:
30  // ATTRIBUTES
31 
32  //dimension of the matrix
34 
35 protected:
36 
37  // METHOD
38 
39  // CONSTRUCTORS
40 
44  mN=1;
45  }
46 
47 
48 
49  // DESTRUCTORS
50 
51 
55  }
56 
57 
58 public:
62  virtual SP::MATH_LeafBlockMatrixStorage NewInstance() const=0;
63 
67  virtual void copy(const MATH_LeafBlockMatrixStorage& s) {
68  mN=s.getDimension();
69  }
73  inline void setDimension(const tUIndex& n) {
74  mN=n;
75  }
76 
77 
83  virtual tUIndex getIndex(const tUIndex& i,const tUIndex& j) const=0;
84 
88  virtual tUIndex getSize() const=0;
89 
93  inline const tUIndex& getDimension() const {
94  return mN;
95  }
96 
97 };
98 #endif
tUIndex mN
Definition: MATH_LeafBlockMatrixStorage.h:33
virtual tUIndex getIndex(const tUIndex &i, const tUIndex &j) const =0
get the index of the row i & column j at the matrix at level 0
virtual tUIndex getSize() const =0
get the memory size of the matrix
SP_OBJECT(MATH_LeafBlockMatrixStorage)
void setDimension(const tUIndex &n)
set the dimension of the matrix
Definition: MATH_LeafBlockMatrixStorage.h:73
Definition: MATH_LeafBlockMatrixStorage.h:22
DEFINE_SPTR(MATH_LeafBlockMatrixStorage)
const tUIndex & getDimension() const
get the dimension (number of rows or columns) of the leaf matrix
Definition: MATH_LeafBlockMatrixStorage.h:93
virtual void copy(const MATH_LeafBlockMatrixStorage &s)
copy the storage
Definition: MATH_LeafBlockMatrixStorage.h:67
#define tUIndex
Definition: types.h:126
virtual SP::MATH_LeafBlockMatrixStorage NewInstance() const =0
return a share pointer to a copy instance of this
MATH_LeafBlockMatrixStorage(void)
create a multi level toeplitz matrix
Definition: MATH_LeafBlockMatrixStorage.h:43
abstract base class for most classes.
Definition: CORE_Object.h:53
virtual ~MATH_LeafBlockMatrixStorage(void)
destroy a multi level toeplitz matrix
Definition: MATH_LeafBlockMatrixStorage.h:54