|
| | Array1D () |
| | Default constructor, which does not allocate any memory. More...
|
| |
| | Array1D (const int &nx) |
| | Constructor that allocates the memory. More...
|
| |
| | Array1D (const int &nx, const double &t) |
| | Constructor that allocates and initializes the data to a value t. More...
|
| |
| Array1D & | operator= (const Array1D &obj) |
| | Assignment operator copies the data structure by value. More...
|
| |
| | Array1D (const Array1D &obj) |
| | Copy constructor. More...
|
| |
| | ~Array1D () |
| | Destructor that frees up the memory. More...
|
| |
| void | Clear () |
| | Function to clear the memory. More...
|
| |
| int | XSize () const |
| | Returns size in the x-direction. More...
|
| |
| int | Length () const |
| | Returns length (i.e. size in the x-direction) More...
|
| |
| void | Resize (const int &nx) |
| | Resizes the array. More...
|
| |
| void | Resize (const int &nx, const double &t) |
| | Resizes the array and sets ALL entries to the specified value. More...
|
| |
| void | SetValue (const double &t) |
| | Set all values in the array to the given value. More...
|
| |
| void | PushBack (const double &t) |
| | Add element to the end of the vector. More...
|
| |
| double * | GetArrayPointer () |
| | Return a pointer to the first element of the data in the vector so we can use it access the data in array format (e.g. for passing it to a Fortran program). More...
|
| |
| const double * | GetConstArrayPointer () const |
| | Return a const point to the first element of the data in the vector so we can use it access the data in array format (e.g. for passing it to a Fortran program). More...
|
| |
| double & | operator() (int ix) |
| |
| const double & | operator() (int ix) const |
| |
| void | insert (Array1D< double > &insarr, int ix) |
| | Insert a given array to the position ix. More...
|
| |
| void | insert (const double &insval, int ix) |
| | Insert a given value to the position ix. More...
|
| |
| void | erase (int ix) |
| | Erase the value from the position ix. More...
|
| |
| void | DumpBinary (FILE *f_out) const |
| | Dump contents of the array to a file in binary format. More...
|
| |
| void | ReadBinary (FILE *f_in) |
| | Read contents of the array from a file in binary format. More...
|
| |
| double & | operator[] (int i) |
| |
| void | DumpBinary (char *filename) |
| | Dump contents of the array to a file in binary format. More...
|
| |
| void | ReadBinary (char *filename) |
| |
| void | DumpBinary4py (char *filename) |
| |
| void | ReadBinary4py (char *filename, int n) |
| |
| void | setArray (vector< double > inarray) |
| |
| void | setnpdblArray (double *inarray, int n) |
| |
| void | getnpdblArray (double *outarray, int n) |
| |
| vector< double > | flatten () |
| |
| string | type () |
| |