Inherits ivl::array_common_base< C >.
Public Member Functions |
base_class & | base () |
| get base class
|
size_t | cols () const |
| get columns, synonym
|
size_t | columns () const |
| get columns
|
bool | is_square () const |
| Check if the matrix is square.
|
size_t | rows () const |
| get rows
|
|
template<class S > |
void | resize (const array< size_t, S > &newsize, const T &s, types::enable_if< is_resizeable >=0) |
| resize (n-dim)
|
template<class S > |
void | resize (const array< size_t, S > &newsize) |
| resize (n-dim) without padding
|
void | resize (size_t rows, size_t cols, const T &s, types::enable_if< is_resizeable >=0) |
| resize (2-dim)
|
void | resize (size_t rows, size_t cols, types::enable_if< is_resizeable >=0) |
| resize (2-dim) without padding
|
|
| array_2d () |
| Construct an empty array_2d Default constructor. Construct an empty array_2d.
|
| array_2d (size_t r, size_t c) |
| Construct by defining rows & columns.
|
template<class D > |
| array_2d (const array< size_t, D > &sz) |
| Construct with dimensions (rows and columns) specified in a size_dims<2> or in a size_array.
|
| array_2d (size_t r, size_t c, const T &s) |
| Construct by defining rows & columns and by using a single initial value for all elements.
|
| array_2d (size_t r, size_t c, const T *data) |
| Construct with rows, columns & pointer to data.
|
| array_2d (size_t r, size_t c, const data_init_arg &data) |
| Construct with rows, columns & initialization argument.
|
template<class J , class D > |
| array_2d (size_t r, size_t c, const array< J, D > &data) |
| Construct with rows, columns & array of data.
|
template<class D > |
| array_2d (const array< size_t, D > &sz, const T &s) |
| Construct by defining size and by using a single initial value for all elements.
|
template<class D > |
| array_2d (const array< size_t, D > &sz, const T *data) |
| Construct with size & pointer to data.
|
template<class D > |
| array_2d (const array< size_t, D > &sz, const data_init_arg &data) |
| Construct with size & initialization argument.
|
template<class D , class J , class S > |
| array_2d (const array< size_t, D > &sz, const array< J, S > &data) |
| Construct with size & array of data.
|
template<class J , class D > |
| array_2d (const array_nd< J, D > &a) |
| Construct with array_nd.
|
template<class J , class D > |
| array_2d (array_nd< J, D > &a) |
| (special for ref_iterator) Construct with non-const array_nd
|
template<class J , class D > |
| array_2d (const array_2d< J, D > &a) |
template<class J , class D > |
| array_2d (array_2d< J, D > &a) |
| array_2d (const this_type &a) |
| Copy Constructor.
|
|
template<class K > |
derived_type & | operator= (const K &a) |
this_type & | operator= (const this_type &a) |
template<class T, class OPTS = data::normal_2d<>>
class ivl::array_2d< T, OPTS >
2-dimensional array of type T