Gadget
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
doublematrixptrmatrix.h
Go to the documentation of this file.
1 #ifndef doublematrixptrmatrix_h
2 #define doublematrixptrmatrix_h
3 
4 #include "intvector.h"
6 
7 class DoubleMatrix;
8 
14 public:
18  DoubleMatrixPtrMatrix() { nrow = 0; v = 0; };
30  int Ncol(int i = 0) const { return v[i]->Size(); };
35  int Nrow() const { return nrow; };
41  DoubleMatrixPtrVector& operator [] (int pos) { return *v[pos]; };
47  const DoubleMatrixPtrVector& operator [] (int pos) const { return *v[pos]; };
52  void resize();
58  void Delete(int pos);
59 protected:
63  int nrow;
68 };
69 
70 #endif
This class implements a dynamic vector of DoubleMatrixPtrVector values.
Definition: doublematrixptrmatrix.h:13
int Nrow() const
This will return the number of rows of the vector.
Definition: doublematrixptrmatrix.h:35
~DoubleMatrixPtrMatrix()
This is the DoubleMatrixPtrMatrix destructor.
Definition: doublematrixptrmatrix.cc:4
int Ncol(int i=0) const
This will return the number of columns in row i of the vector.
Definition: doublematrixptrmatrix.h:30
void resize()
This will add one new empty entry to the vector.
Definition: doublematrixptrmatrix.cc:14
DoubleMatrixPtrMatrix()
This is the default DoubleMatrixPtrMatrix constructor.
Definition: doublematrixptrmatrix.h:18
void Delete(int pos)
This will delete an entry from the vector.
Definition: doublematrixptrmatrix.cc:29
DoubleMatrixPtrVector & operator[](int pos)
This will return the value of an element of the vector.
Definition: doublematrixptrmatrix.h:41
int nrow
This is number of rows of the vector.
Definition: doublematrixptrmatrix.h:63
DoubleMatrixPtrVector ** v
This is the vector of DoubleMatrixPtrVector values.
Definition: doublematrixptrmatrix.h:67
This class implements a dynamic vector of DoubleMatrix values.
Definition: doublematrixptrvector.h:10
int Size() const
This will return the size of the vector.
Definition: doublematrixptrvector.h:52
This class implements a dynamic vector of DoubleVector values.
Definition: doublematrix.h:11