|
QDP++
|
Container for a multi-dimensional 4D array. More...
#include <qdp_multi.h>
Public Member Functions | |
| multi4d () | |
| multi4d (T *f, int ns4, int ns3, int ns2, int ns1) | |
| multi4d (int ns4, int ns3, int ns2, int ns1) | |
| ~multi4d () | |
| multi4d (const multi4d &s) | |
| Copy constructor. | |
| void | resize (int ns4, int ns3, int ns2, int ns1) |
| Allocate mem for the array. | |
| int | size1 () const |
| Size of array. | |
| int | size2 () const |
| int | size3 () const |
| int | size4 () const |
| multi4d< T > & | operator= (const multi4d< T > &s1) |
| Equal operator uses underlying = of T. | |
| template<class T1> | |
| multi4d< T > & | operator= (const T1 &s1) |
| Equal operator uses underlying = of T. | |
| const T * | slice (int l, int k, int j) const |
| Return ref to a column slice. | |
| T & | operator() (int l, int k, int j, int i) |
| Return ref to an element. | |
| const T & | operator() (int l, int k, int j, int i) const |
| Return const ref to an element. | |
| multi3d< T > | operator[] (int l) |
| Return ref to an element. | |
| const multi3d< T > | operator[] (int l) const |
| Return const ref to an element. | |
Container for a multi-dimensional 4D array.
Definition at line 831 of file qdp_multi.h.
|
inline |
Definition at line 834 of file qdp_multi.h.
Referenced by multi4d(), operator=(), and operator=().
|
inline |
Definition at line 835 of file qdp_multi.h.
|
inlineexplicit |
Definition at line 836 of file qdp_multi.h.
References resize().
|
inline |
Definition at line 837 of file qdp_multi.h.
|
inline |
|
inline |
Return ref to an element.
Definition at line 903 of file qdp_multi.h.
|
inline |
Return const ref to an element.
Definition at line 906 of file qdp_multi.h.
|
inline |
|
inline |
Equal operator uses underlying = of T.
Definition at line 886 of file qdp_multi.h.
References multi4d().
|
inline |
Return ref to an element.
Definition at line 909 of file qdp_multi.h.
|
inline |
Return const ref to an element.
Definition at line 912 of file qdp_multi.h.
|
inline |
Allocate mem for the array.
Definition at line 849 of file qdp_multi.h.
References QDP::QDP_error_exit().
Referenced by multi4d(), multi4d(), operator=(), and QDP::read().
|
inline |
Size of array.
Definition at line 869 of file qdp_multi.h.
Referenced by operator=(), QDP::read(), and QDP::write().
|
inline |
Definition at line 870 of file qdp_multi.h.
Referenced by operator=(), QDP::read(), and QDP::write().
|
inline |
Definition at line 871 of file qdp_multi.h.
Referenced by operator=(), QDP::read(), and QDP::write().
|
inline |
Definition at line 872 of file qdp_multi.h.
Referenced by operator=(), QDP::read(), and QDP::write().
|
inline |
Return ref to a column slice.
Definition at line 900 of file qdp_multi.h.