marray::Matrix< T, A > Class Template Reference

Two-dimensional Marray. More...

#include <marray.hxx>

Inheritance diagram for marray::Matrix< T, A >:
Inheritance graph
[legend]
Collaboration diagram for marray::Matrix< T, A >:
Collaboration graph
[legend]

List of all members.

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).

Detailed Description

template<class T, class A>
class marray::Matrix< T, A >

Two-dimensional Marray.

Definition at line 685 of file marray.hxx.


Member Typedef Documentation

template<class T, class A>
typedef base::allocator_type marray::Matrix< T, A >::allocator_type

Reimplemented from marray::Marray< T, A >.

Definition at line 701 of file marray.hxx.

template<class T, class A>
typedef Marray<T, A> marray::Matrix< T, A >::base

Reimplemented from marray::Marray< T, A >.

Definition at line 689 of file marray.hxx.

template<class T, class A>
typedef base::const_iterator marray::Matrix< T, A >::const_iterator

Reimplemented from marray::Marray< T, A >.

Definition at line 699 of file marray.hxx.

template<class T, class A>
typedef base::const_pointer marray::Matrix< T, A >::const_pointer

Reimplemented from marray::Marray< T, A >.

Definition at line 694 of file marray.hxx.

template<class T, class A>
typedef base::const_reference marray::Matrix< T, A >::const_reference

Reimplemented from marray::Marray< T, A >.

Definition at line 696 of file marray.hxx.

template<class T, class A>
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.

template<class T, class A>
typedef base::iterator marray::Matrix< T, A >::iterator

Reimplemented from marray::Marray< T, A >.

Definition at line 697 of file marray.hxx.

template<class T, class A>
typedef base::pointer marray::Matrix< T, A >::pointer

Reimplemented from marray::Marray< T, A >.

Definition at line 692 of file marray.hxx.

template<class T, class A>
typedef base::reference marray::Matrix< T, A >::reference

Reimplemented from marray::Marray< T, A >.

Definition at line 695 of file marray.hxx.

template<class T, class A>
typedef base::reverse_iterator marray::Matrix< T, A >::reverse_iterator

Reimplemented from marray::Marray< T, A >.

Definition at line 698 of file marray.hxx.

template<class T, class A>
typedef base::value_type marray::Matrix< T, A >::value_type

Reimplemented from marray::Marray< T, A >.

Definition at line 691 of file marray.hxx.


Constructor & Destructor Documentation

template<class T , class A >
marray::Matrix< T, A >::Matrix ( const allocator_type allocator = allocator_type()  )  [inline]

Empty constructor.

Parameters:
allocator Allocator.

Definition at line 4997 of file marray.hxx.

template<class T , class A >
template<class TLocal , bool isConstLocal, class ALocal >
marray::Matrix< T, A >::Matrix ( const View< TLocal, isConstLocal, ALocal > &  in  )  [inline]

Copy from a View.

Parameters:
in View (source).

Definition at line 5013 of file marray.hxx.

Here is the call graph for this function:

template<class T , class A >
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.

Parameters:
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.

template<class T , class A >
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.

Parameters:
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.

template<class T , class A >
template<class E , class Te>
marray::Matrix< T, A >::Matrix ( const ViewExpression< E, Te > &  expression,
const allocator_type allocator = allocator_type() 
) [inline]

Construct Matrix from ViewExpression.

Parameters:
expression ViewExpression.
allocator Allocator.

Definition at line 5130 of file marray.hxx.

Here is the call graph for this function:


Member Function Documentation

template<class T , class A >
template<class E , class Te>
Matrix< T, A > & marray::Matrix< T, A >::operator= ( const ViewExpression< E, Te > &  expression  )  [inline]

Assignment from ViewExpression.

Parameters:
expression ViewExpression.

Reimplemented from marray::Marray< T, A >.

Definition at line 5227 of file marray.hxx.

Here is the call graph for this function:

template<class T , class A >
template<class TLocal , bool isConstLocal, class ALocal >
Matrix< T, A > & marray::Matrix< T, A >::operator= ( const View< TLocal, isConstLocal, ALocal > &  in  )  [inline]

Assignment from View.

Parameters:
in View (source).

Reimplemented from marray::Marray< T, A >.

Definition at line 5186 of file marray.hxx.

Here is the call graph for this function:

template<class T , class A >
Matrix< T, A > & marray::Matrix< T, A >::operator= ( const Matrix< T, A > &  in  )  [inline]

Assignment.

Parameters:
in Matrix (source).

Definition at line 5168 of file marray.hxx.

template<class T , class A >
Matrix< T, A > & marray::Matrix< T, A >::operator= ( const T &  value  )  [inline]

Assignment.

Parameters:
value Value.

All entries are set to value.

Reimplemented from marray::Marray< T, A >.

Definition at line 5150 of file marray.hxx.

template<class T , class A >
void marray::Matrix< T, A >::reshape ( const size_t  n1,
const size_t  n2 
) [inline]

Reshape.

Parameters:
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.

template<class T , class A >
void marray::Matrix< T, A >::resize ( const InitializationSkipping is,
const size_t  n1,
const size_t  n2 
) [inline]

Resize (existing entries are preserved).

Parameters:
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.

template<class T , class A >
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).

Parameters:
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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Mon Jun 17 16:31:10 2013 for OpenGM by  doxygen 1.6.3