Two-dimensional Marray. More...
#include <marray.hxx>
Public Types | |
typedef Marray< T, A > | base |
typedef base::value_type | value_type |
typedef base::pointer | pointer |
typedef base::const_pointer | const_pointer |
typedef base::reference | reference |
typedef base::const_reference | const_reference |
typedef base::iterator | iterator |
typedef base::reverse_iterator | reverse_iterator |
typedef base::const_iterator | const_iterator |
typedef base::const_reverse_iterator | const_reverse_iterator |
typedef base::allocator_type | allocator_type |
Public Member Functions | |
Matrix (const allocator_type &=allocator_type()) | |
Empty constructor. | |
template<class TLocal , bool isConstLocal, class ALocal > | |
Matrix (const View< TLocal, isConstLocal, ALocal > &) | |
Copy from a View. | |
Matrix (const size_t, const size_t, const T &=T(), const CoordinateOrder &=defaultOrder, const allocator_type &=allocator_type()) | |
Construct Matrix with initialization. | |
Matrix (const InitializationSkipping &, const size_t, const size_t, const CoordinateOrder &=defaultOrder, const allocator_type &=allocator_type()) | |
Construct Matrix without initialization. | |
template<class E , class Te > | |
Matrix (const ViewExpression< E, Te > &, const allocator_type &=allocator_type()) | |
Construct Matrix from ViewExpression. | |
Matrix< T, A > & | operator= (const T &) |
Assignment. | |
Matrix< T, A > & | operator= (const Matrix< T, A > &) |
Assignment. | |
template<class TLocal , bool isConstLocal, class ALocal > | |
Matrix< T, A > & | operator= (const View< TLocal, isConstLocal, ALocal > &) |
Assignment from View. | |
template<class E , class Te > | |
Matrix< T, A > & | operator= (const ViewExpression< E, Te > &) |
Assignment from ViewExpression. | |
void | reshape (const size_t, const size_t) |
Reshape. | |
void | resize (const size_t, const size_t, const T &=T()) |
Resize (existing entries are preserved, new entries are initialized). | |
void | resize (const InitializationSkipping &, const size_t, const size_t) |
Resize (existing entries are preserved). |
Two-dimensional Marray.
Definition at line 685 of file marray.hxx.
typedef base::allocator_type marray::Matrix< T, A >::allocator_type |
Reimplemented from marray::Marray< T, A >.
Definition at line 701 of file marray.hxx.
typedef Marray<T, A> marray::Matrix< T, A >::base |
Reimplemented from marray::Marray< T, A >.
Definition at line 689 of file marray.hxx.
typedef base::const_iterator marray::Matrix< T, A >::const_iterator |
Reimplemented from marray::Marray< T, A >.
Definition at line 699 of file marray.hxx.
typedef base::const_pointer marray::Matrix< T, A >::const_pointer |
Reimplemented from marray::Marray< T, A >.
Definition at line 694 of file marray.hxx.
typedef base::const_reference marray::Matrix< T, A >::const_reference |
Reimplemented from marray::Marray< T, A >.
Definition at line 696 of file marray.hxx.
typedef base::const_reverse_iterator marray::Matrix< T, A >::const_reverse_iterator |
Reimplemented from marray::Marray< T, A >.
Definition at line 700 of file marray.hxx.
typedef base::iterator marray::Matrix< T, A >::iterator |
Reimplemented from marray::Marray< T, A >.
Definition at line 697 of file marray.hxx.
typedef base::pointer marray::Matrix< T, A >::pointer |
Reimplemented from marray::Marray< T, A >.
Definition at line 692 of file marray.hxx.
typedef base::reference marray::Matrix< T, A >::reference |
Reimplemented from marray::Marray< T, A >.
Definition at line 695 of file marray.hxx.
typedef base::reverse_iterator marray::Matrix< T, A >::reverse_iterator |
Reimplemented from marray::Marray< T, A >.
Definition at line 698 of file marray.hxx.
typedef base::value_type marray::Matrix< T, A >::value_type |
Reimplemented from marray::Marray< T, A >.
Definition at line 691 of file marray.hxx.
marray::Matrix< T, A >::Matrix | ( | const allocator_type & | allocator = allocator_type() |
) | [inline] |
marray::Matrix< T, A >::Matrix | ( | const View< TLocal, isConstLocal, ALocal > & | in | ) | [inline] |
Copy from a View.
in | View (source). |
Definition at line 5013 of file marray.hxx.
marray::Matrix< T, A >::Matrix | ( | const size_t | n1, | |
const size_t | n2, | |||
const T & | value = T() , |
|||
const CoordinateOrder & | coordinateOrder = defaultOrder , |
|||
const allocator_type & | allocator = allocator_type() | |||
) | [inline] |
Construct Matrix with initialization.
n1 | size in 1st dimension. | |
n2 | size in 2nd dimension. | |
value | Initial value of entries. | |
coordinateOrder | Flag specifying whether FirstMajorOrder or LastMajorOrder is to be used. | |
allocator | Allocator. |
Definition at line 5069 of file marray.hxx.
marray::Matrix< T, A >::Matrix | ( | const InitializationSkipping & | is, | |
const size_t | n1, | |||
const size_t | n2, | |||
const CoordinateOrder & | coordinateOrder = defaultOrder , |
|||
const allocator_type & | allocator = allocator_type() | |||
) | [inline] |
Construct Matrix without initialization.
is | Flag to be set to SkipInitialization. | |
n1 | Size in 1st dimension. | |
n2 | Size in 2nd dimension. | |
coordinateOrder | Flag specifying whether FirstMajorOrder or LastMajorOrder is to be used. | |
allocator | Allocator. |
Definition at line 5103 of file marray.hxx.
marray::Matrix< T, A >::Matrix | ( | const ViewExpression< E, Te > & | expression, | |
const allocator_type & | allocator = allocator_type() | |||
) | [inline] |
Construct Matrix from ViewExpression.
expression | ViewExpression. | |
allocator | Allocator. |
Definition at line 5130 of file marray.hxx.
Matrix< T, A > & marray::Matrix< T, A >::operator= | ( | const ViewExpression< E, Te > & | expression | ) | [inline] |
Assignment from ViewExpression.
expression | ViewExpression. |
Reimplemented from marray::Marray< T, A >.
Definition at line 5227 of file marray.hxx.
Matrix< T, A > & marray::Matrix< T, A >::operator= | ( | const View< TLocal, isConstLocal, ALocal > & | in | ) | [inline] |
Assignment from View.
in | View (source). |
Reimplemented from marray::Marray< T, A >.
Definition at line 5186 of file marray.hxx.
Matrix< T, A > & marray::Matrix< T, A >::operator= | ( | const Matrix< T, A > & | in | ) | [inline] |
Matrix< T, A > & marray::Matrix< T, A >::operator= | ( | const T & | value | ) | [inline] |
Assignment.
value | Value. |
All entries are set to value.
Reimplemented from marray::Marray< T, A >.
Definition at line 5150 of file marray.hxx.
void marray::Matrix< T, A >::reshape | ( | const size_t | n1, | |
const size_t | n2 | |||
) | [inline] |
Reshape.
n1 | New extension in 1st dimension. | |
n2 | New extension in 1st dimension. |
Is is necessary that n1*n2 == size().
Definition at line 5297 of file marray.hxx.
void marray::Matrix< T, A >::resize | ( | const InitializationSkipping & | is, | |
const size_t | n1, | |||
const size_t | n2 | |||
) | [inline] |
Resize (existing entries are preserved).
is | Flag to be set to SkipInitialization. | |
n1 | New extension in 1st dimension. | |
n2 | New extension in 1st dimension. |
Definition at line 5271 of file marray.hxx.
void marray::Matrix< T, A >::resize | ( | const size_t | n1, | |
const size_t | n2, | |||
const T & | value = T() | |||
) | [inline] |
Resize (existing entries are preserved, new entries are initialized).
n1 | New extension in 1st dimension. | |
n2 | New extension in 1st dimension. | |
value | Initial value for newly allocated entries. |
Definition at line 5246 of file marray.hxx.