|
| arr2T () |
|
| arr2T (tsize sz1, tsize sz2) |
|
| arr2T (T *p, tsize sz1, tsize sz2) |
|
| arr2T (const arr2T &orig) |
|
| ~arr2T () |
|
tsize | size1 () const |
|
tsize | size2 () const |
|
tsize | size () const |
|
void | alloc (tsize sz1, tsize sz2) |
|
void | allocAndFill (tsize sz1, tsize sz2, const T &inival) |
|
void | fast_alloc (tsize sz1, tsize sz2) |
|
void | dealloc () |
|
void | fill (const T &val) |
|
void | scale (const T &val) |
|
arr2T & | operator= (const arr2T &orig) |
|
template<typename T2 > |
T * | operator[] (T2 n) |
|
template<typename T2 > |
const T * | operator[] (T2 n) const |
|
template<typename T2 , typename T3 > |
T & | operator() (T2 n1, T3 n2) |
|
template<typename T2 , typename T3 > |
const T & | operator() (T2 n1, T3 n2) const |
|
void | minmax (T &minv, T &maxv) const |
|
void | swap (arr2T &other) |
|
template<typename T2 , typename T3 > |
bool | conformable (const arr2T< T2, T3 > &other) const |
|
template<typename T, typename storageManager>
class arr2T< T, storageManager >
Two-dimensional array type, with selectable storage management. The storage ordering is the same as in C. An entry is located by address arithmetic, not by double dereferencing. The indices start at zero.
Definition at line 347 of file arr.h.
template<typename T, typename storageManager>
template<typename T2 , typename T3 >
T& arr2T< T, storageManager >::operator() |
( |
T2 |
n1, |
|
|
T3 |
n2 |
|
) |
| |
|
inline |
Returns a reference to the element with the indices n1 and n2.
Definition at line 434 of file arr.h.
template<typename T, typename storageManager>
template<typename T2 , typename T3 >
const T& arr2T< T, storageManager >::operator() |
( |
T2 |
n1, |
|
|
T3 |
n2 |
|
) |
| const |
|
inline |
Returns a constant reference to the element with the indices n1 and n2.
Definition at line 438 of file arr.h.
template<typename T, typename storageManager>
template<typename T2 , typename T3 >
bool arr2T< T, storageManager >::conformable |
( |
const arr2T< T2, T3 > & |
other | ) |
const |
|
inline |
Returns true
if the array and other have the same dimensions, else false
.
Definition at line 466 of file arr.h.