|
QDP++
|
2d array, with 1-based indices More...
#include <qdp_arrays.h>
Public Member Functions | |
| Array2dO () | |
| Array2dO (int n) | |
| Array2dO (int n2, int n1) | |
| ~Array2dO () | |
| Array2dO (const Array2dO &s) | |
| Copy constructor. | |
| void | resize (int n2, int n1) |
| void | resize (int n) |
| int | size () const |
| int | size1 () const |
| int | size2 () const |
| int | nrows () const |
| Another variant on the size of the 2d array. | |
| int | ncols () const |
| Array2dO & | operator= (const Array2dO &s) |
| template<typename T1> | |
| Array2dO< T > & | operator= (const T1 &s1) |
| Equal operator uses underlying = of T. | |
| T & | operator() (int i, int j) |
| Return ref to an element. | |
| const T & | operator() (int i, int j) const |
| Return const ref to an element. | |
| const multi2d< T > & | ref () const |
| Return ref to underlying array. | |
| multi2d< T > & | ref () |
| Return ref to underlying array. | |
2d array, with 1-based indices
Definition at line 64 of file qdp_arrays.h.
|
inline |
Definition at line 67 of file qdp_arrays.h.
Referenced by Array2dO(), operator=(), and operator=().
|
inlineexplicit |
Definition at line 68 of file qdp_arrays.h.
|
inlineexplicit |
Definition at line 69 of file qdp_arrays.h.
|
inline |
Definition at line 70 of file qdp_arrays.h.
|
inline |
|
inline |
Definition at line 83 of file qdp_arrays.h.
|
inline |
Another variant on the size of the 2d array.
Definition at line 82 of file qdp_arrays.h.
|
inline |
Return ref to an element.
Definition at line 92 of file qdp_arrays.h.
|
inline |
Return const ref to an element.
Definition at line 95 of file qdp_arrays.h.
|
inline |
Definition at line 85 of file qdp_arrays.h.
References Array2dO().
|
inline |
Equal operator uses underlying = of T.
Definition at line 89 of file qdp_arrays.h.
References Array2dO().
|
inline |
Return ref to underlying array.
Definition at line 101 of file qdp_arrays.h.
|
inline |
Return ref to underlying array.
Definition at line 98 of file qdp_arrays.h.
|
inline |
Definition at line 76 of file qdp_arrays.h.
|
inline |
Definition at line 75 of file qdp_arrays.h.
|
inline |
Definition at line 77 of file qdp_arrays.h.
|
inline |
Definition at line 78 of file qdp_arrays.h.
|
inline |
Definition at line 79 of file qdp_arrays.h.