20 explicit Array2D(
const int row_size,
const int col_size):
56 for (
int i = 0; i <
_length; i++ )
61 const int nrow = aij.
getRow();
62 const int ncol = aij.
getCol();
63 for (
int i = 0; i < nrow; i++ ){
64 for (
int j = 0; j < ncol; j++){
65 _self(i,j) = aij(i,j);
71 const int nrow = aij.
getRow();
72 const int ncol = aij.
getCol();
73 for (
int i = 0; i < nrow; i++ ){
74 for (
int j = 0; j < ncol; j++){
75 aij(i,j) =
_self(i,j);
82 for (
int i = 0; i <
_length; i++ )
87 for (
int i = 0; i <
_rowSize; i++ ){
106 for (
int i = 0; i <
_rowSize; i++){
107 for (
int j = 0; j <
_colSize; j++ ){
108 os << std::setprecision(14) << this->
operator()(i,j) <<
" ";
119 for (
int i = 0; i <
_length; i++ )
void partialCopyFrom(const Array2D &aij)
Array2D(const int row_size, const int col_size)
void partialCopyTo(Array2D &aij)
T & operator()(const int i, const int j)
void operator=(const T &x)
void print(ostream &os) const
const T & operator()(const int i, const int j) const