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