|
QDP++
|
Container for a multi-dimensional 2D array. More...
#include <qdp_multi.h>
Public Member Functions | |
| multi2d () | |
| multi2d (T *f, int ns2, int ns1) | |
| multi2d (int ns2, int ns1) | |
| ~multi2d () | |
| multi2d (const multi2d &s) | |
| Copy constructor. | |
| void | resize (int ns2, int ns1) |
| Allocate mem for the array. | |
| int | size1 () const |
| Size of array. | |
| int | size2 () const |
| int | nrows () const |
| Another variant on the size of the 2d array. | |
| int | ncols () const |
| multi2d< T > & | operator= (const multi2d< T > &s1) |
| Equal operator uses underlying = of T. | |
| template<class T1> | |
| multi2d< T > & | operator= (const T1 &s1) |
| Equal operator uses underlying = of T. | |
| const T * | slice (int j) const |
| Return ref to a row slice. | |
| T & | operator() (int j, int i) |
| Return ref to an element. | |
| const T & | operator() (int j, int i) const |
| Return const ref to an element. | |
| multi1d< T > | operator[] (int j) |
| Return ref to an element. | |
| const multi1d< T > | operator[] (int j) const |
| Return const ref to an element. | |
Container for a multi-dimensional 2D array.
Definition at line 639 of file qdp_multi.h.
|
inline |
Definition at line 642 of file qdp_multi.h.
Referenced by multi2d(), operator=(), and operator=().
|
inline |
Definition at line 643 of file qdp_multi.h.
|
inlineexplicit |
Definition at line 644 of file qdp_multi.h.
References resize().
|
inline |
Definition at line 645 of file qdp_multi.h.
|
inline |
|
inline |
Definition at line 678 of file qdp_multi.h.
|
inline |
Another variant on the size of the 2d array.
Definition at line 677 of file qdp_multi.h.
|
inline |
Return ref to an element.
Definition at line 709 of file qdp_multi.h.
|
inline |
Return const ref to an element.
Definition at line 712 of file qdp_multi.h.
|
inline |
|
inline |
Equal operator uses underlying = of T.
Definition at line 692 of file qdp_multi.h.
References multi2d().
|
inline |
Return ref to an element.
Definition at line 715 of file qdp_multi.h.
|
inline |
Return const ref to an element.
Definition at line 718 of file qdp_multi.h.
|
inline |
Allocate mem for the array.
Definition at line 657 of file qdp_multi.h.
References QDP::QDP_error_exit().
Referenced by multi2d(), multi2d(), operator=(), QDP::HDF5::rd(), and QDP::read().
|
inline |
Size of array.
Definition at line 673 of file qdp_multi.h.
Referenced by QDP::assert_global_size(), QDP::QDPInternal::globalSumArray(), operator=(), QDP::read(), QDP::sumMulti(), QDP::sumMulti(), and QDP::write().
|
inline |
Definition at line 674 of file qdp_multi.h.
Referenced by QDP::assert_global_size(), QDP::QDPInternal::globalSumArray(), operator=(), QDP::read(), QDP::sumMulti(), QDP::sumMulti(), and QDP::write().
|
inline |
Return ref to a row slice.
Definition at line 706 of file qdp_multi.h.
Referenced by QDP::QDPInternal::globalSumArray().