1 #ifndef MINT_TWO_D_ARRAY_HH 2 #define MINT_TWO_D_ARRAY_HH 51 for(
unsigned int i=0; i <
size(); i++)
_m[i]=initValue;
56 for(
unsigned int i = 0; i <
size(); i++){
64 unsigned int n = row *
_Ncol;
66 std::cout <<
"array size error in Mint::TwoDArray" 67 <<
" row = " << row <<
", n = " << n << std::endl;
73 unsigned int n = row *
_Ncol;
75 std::cout <<
"array size error in Mint::TwoDArray" 76 <<
" row = " << row <<
", n = " << n << std::endl;
unsigned int size() const
unsigned int Ncol() const
TwoDArray(unsigned int Nrow, unsigned int Ncol)
const T * c_array() const
TwoDArray(const TwoDArray &other)
const T * operator[](unsigned int row) const
T * operator[](unsigned int row)
TwoDArray(unsigned int Nrow, unsigned int Ncol, T initValue)
unsigned int Nrow() const