#include <marray.h>
Public Methods | |
MultiArray (const vector< int > &dims, const E &x) | |
Constructor with default assignment of x to each element. | |
MultiArray (const vector< int > &dims) | |
Constructor with no default assignment. | |
MultiArray () | |
Constructor with no initialization. | |
~MultiArray () | |
E& | operator[] (const vector< int > &indices) |
This can be used for access or assignment (e.g., ma[indices] = 1). | |
bool | Increment (vector< int > &indices) |
Get the next element (used as an iterator). Return true if at end. | |
Public Attributes | |
int | MaxSize |
Maximum allowable array size (default = 10 million). | |
Friends | |
istream& | operator>> (istream &is, MultiArray &ma) |
This will not work correctly unless dimensions are preset correctly. | |
ostream& | operator<< (ostream &os, const MultiArray &ma) |
Just print out the vector. |
|
Constructor with default assignment of x to each element.
|
|
Constructor with no default assignment.
|
|
Constructor with no initialization.
|
|
|
|
Get the next element (used as an iterator). Return true if at end.
|
|
This can be used for access or assignment (e.g., ma[indices] = 1).
|
|
Just print out the vector.
|
|
This will not work correctly unless dimensions are preset correctly.
|
|
Maximum allowable array size (default = 10 million).
|