12
// Default constructor
15
// Size/array constructor
16
Array2(int nrows, int ncols, long* data=0);
19
Array2(const Array2 & source);
24
// Assignment operator
25
Array2 & operator=(const Array2 & source);
28
bool operator==(const Array2 & other) const;
35
void resize(int ncols, int nrows, long* data=0);
38
Array1 & operator[](int i);
41
const Array1 & operator[](int i) const;
44
std::string asString() const;
47
void view(int* nrows, int* ncols, long** data) const;
58
void allocateMemory();
60
void deallocateMemory();