Darc Library  2012.11
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
darc::core::CR_Matrix< T > Class Template Reference

Template matrix class for M(rows)-by-N(columns)-dimensional matrices of arbitrary type. More...

#include <cr_matrix_ex.h>

List of all members.

Public Member Functions

 CR_Matrix ()
 CR_Matrix (UInt _m, UInt _n)
 ~CR_Matrix ()
 CR_Matrix (UInt _m, UInt _n, const T *_data)
 CR_Matrix (const CR_Matrix &_src)
CR_Matrixoperator= (const CR_Matrix &_src)
Real operator() (int _m, int _n) const
Realoperator() (int _m, int _n)

Public Attributes

T * m_data

Detailed Description

template<typename T>
class darc::core::CR_Matrix< T >

Template matrix class for M(rows)-by-N(columns)-dimensional matrices of arbitrary type.

Unlike CR_MatrixMxN, objects of this class may change dimension during runtime. All values are saved in column order.


Constructor & Destructor Documentation

template<typename T >
darc::core::CR_Matrix< T >::CR_Matrix ( ) [inline]

Default constructor.

template<typename T >
darc::core::CR_Matrix< T >::CR_Matrix ( UInt  _m,
UInt  _n 
) [inline]
template<typename T >
darc::core::CR_Matrix< T >::~CR_Matrix ( ) [inline]
template<typename T >
darc::core::CR_Matrix< T >::CR_Matrix ( UInt  _m,
UInt  _n,
const T *  _data 
) [inline]

Creates a m-by-n matrix from data array.

template<typename T >
darc::core::CR_Matrix< T >::CR_Matrix ( const CR_Matrix< T > &  _src) [inline]

Copy Constructor.


Member Function Documentation

template<typename T >
Real darc::core::CR_Matrix< T >::operator() ( int  _m,
int  _n 
) const [inline]

Operator "Read".

template<typename T >
Real& darc::core::CR_Matrix< T >::operator() ( int  _m,
int  _n 
) [inline]

Operator "Write".

template<typename T >
CR_Matrix& darc::core::CR_Matrix< T >::operator= ( const CR_Matrix< T > &  _src) [inline]

Operator "Assignment".


Member Data Documentation

template<typename T >
T* darc::core::CR_Matrix< T >::m_data

The documentation for this class was generated from the following file: