#include <Array3D.h>
Public Member Functions | |
| int | dim1 () |
| Gets the number of elements in the array's first dimension. | |
| int | dim2 () |
| Gets the number of elements in the array's second dimension. | |
| int | dim3 () |
| Gets the number of elements in the array's third dimension. | |
| int | size () |
| Gets the total number of elements in the array. | |
| T *** | array () |
| Gets a pointer to an array containing the array elements. | |
| void | allocate (int i, int j, int k) |
| Allocates memory for the array. | |
| void | deallocate () |
| Deallocates memory for the array. | |
| void | operator= (const Array3D &rhs) |
| Sets two arrays equal. | |
| void | operator= (const T C) |
| Sets all of the elements in an array equal to the same value. | |
| Array3D () | |
| Creates an array. | |
| Array3D (int i, int j, int k) | |
| Creates an array and allocates memory. | |
| Array3D (const Array3D< T > &rhs) | |
| Creates an array and sets it equal to another array. | |
| ~Array3D () | |
| Destroys the array and cleans up the memory. | |
| T & | operator() (int i, int j, int k) |
Accesses element (i,j,k) of the array. | |
Private Attributes | |
| int | n_1 |
| Number of elements in the array's first dimension. | |
| int | n_2 |
| Number of elements in the array's second dimension. | |
| int | n_3 |
| Number of elements in the array's third dimension. | |
| T *** | pArray |
| Array containing the data. | |
Friends | |
| ostream & | operator<< (ostream &strm, const Array3D< T > &rhs) |
All of the memory allocation and deallocation details are dealt with by the class.
Definition at line 43 of file Array3D.h.
| int Array3D< T >::dim1 | ( | ) | [inline] |
Gets the number of elements in the array's first dimension.
Definition at line 73 of file Array3D.h.
Referenced by QMCMikesBetterWalkerInitialization::FindBestWalker(), QMCMikesBetterWalkerInitialization::GradObjectiveFunctionForWalkers(), and QMCMikesBetterWalkerInitialization::ObjectiveFunctionForWalkers().
| int Array3D< T >::dim2 | ( | ) | [inline] |
| int Array3D< T >::dim3 | ( | ) | [inline] |
Gets the number of elements in the array's third dimension.
Definition at line 87 of file Array3D.h.
Referenced by QMCMikesBetterWalkerInitialization::FindBestWalker(), QMCMikesBetterWalkerInitialization::GradObjectiveFunctionForWalkers(), and QMCMikesBetterWalkerInitialization::ObjectiveFunctionForWalkers().
| int Array3D< T >::size | ( | ) | [inline] |
| T*** Array3D< T >::array | ( | ) | [inline] |
Gets a pointer to an array containing the array elements.
The ordering of this array is NOT specified.
Definition at line 100 of file Array3D.h.
Referenced by QMCSCFJastrow::calculate_CIDerivatives(), QMCSlater::calculate_DerivativeRatios(), QMCSCFJastrow::calculate_OrbitalDerivatives(), and QMCSCFJastrow::update_SCF().
| void Array3D< T >::allocate | ( | int | i, | |
| int | j, | |||
| int | k | |||
| ) | [inline] |
Allocates memory for the array.
| i | size of the array's first dimension. | |
| j | size of the array's second dimension. | |
| k | size of the array's third dimension. |
Definition at line 109 of file Array3D.h.
Referenced by Array3D< double >::Array3D(), QMCWalkerData::initialize(), and Array3D< double >::operator=().
| void Array3D< T >::deallocate | ( | ) | [inline] |
Deallocates memory for the array.
Definition at line 138 of file Array3D.h.
Referenced by Array3D< double >::allocate(), and Array3D< double >::~Array3D().
| void Array3D< T >::operator= | ( | const T | C | ) | [inline] |
| T& Array3D< T >::operator() | ( | int | i, | |
| int | j, | |||
| int | k | |||
| ) | [inline] |
| ostream& operator<< | ( | ostream & | strm, | |
| const Array3D< T > & | rhs | |||
| ) | [friend] |
Number of elements in the array's first dimension.
Definition at line 49 of file Array3D.h.
Referenced by Array3D< double >::allocate(), Array3D< double >::Array3D(), Array3D< double >::deallocate(), Array3D< double >::dim1(), Array3D< double >::operator=(), and Array3D< double >::size().
Number of elements in the array's second dimension.
Definition at line 54 of file Array3D.h.
Referenced by Array3D< double >::allocate(), Array3D< double >::Array3D(), Array3D< double >::deallocate(), Array3D< double >::dim2(), Array3D< double >::operator=(), and Array3D< double >::size().
Number of elements in the array's third dimension.
Definition at line 59 of file Array3D.h.
Referenced by Array3D< double >::allocate(), Array3D< double >::Array3D(), Array3D< double >::deallocate(), Array3D< double >::dim3(), Array3D< double >::operator=(), and Array3D< double >::size().
Array containing the data.
Definition at line 64 of file Array3D.h.
Referenced by Array3D< double >::allocate(), Array3D< double >::array(), Array3D< double >::Array3D(), Array3D< double >::deallocate(), Array3D< double >::operator()(), and Array3D< double >::operator=().
1.5.6