C++ main module for gpm Package  1.0
CORE_Matrix.hpp
Go to the documentation of this file.
1 #ifndef CORE_Matrix_CPP
2 #define CORE_Matrix_CPP
3 
4 #include "CORE_Matrix.h"
5 #include <algorithm>
6 
7 using namespace std;
8 
9 
10 template<class T>
12  mMatrix.resize(0);
13 }
14 
15 template<class T>
17  mMatrix.resize(n);
18 }
19 
20 
21 
22 template<class T>
24  //clear();
25 }
26 
27 template<class T>
29  tString ret="";
30  int dim=getSize();
31  for (int i=0;i<dim;i++) {
32  int p=getSize(i);
33  for (int j=0;j<p;j++)
34  ret+=CORE_String::toString((*this)[i][j])+" \t ";
35  ret+="\n";
36  }
37 
38  return ret;
39 };
40 #endif
tString toString() const
return the string associated to the string
Definition: CORE_String.h:150
virtual tString toString() const
turn the matrix into string
Definition: CORE_Matrix.hpp:28
virtual ~CORE_Matrix()
destroy an array of T*
Definition: CORE_Matrix.hpp:23
CORE_Matrix()
build a vector of T
Definition: CORE_Matrix.hpp:11
abstract base class for most classes.
Definition: CORE_Object.h:30
#define tString
Definition: types.h:36