MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
mds::math::CMatrix< T > Class Template Reference

Class template for a two dimensional dense matrix stored in row-major format. More...

#include <mdsMatrix.h>

Inheritance diagram for mds::math::CMatrix< T >:
Inheritance graph
[legend]

List of all members.

Public Types

enum  { CLASS_MATRIX }
 Templates that require members of the CMatrix class can use this enum to check the existence. More...
enum  { CLASS_OBJECT }
 Templates that require members of the CObject class can use this enum to check the existence. More...
enum  { HEAP_OBJECT = 0x70616568 }
 Signature used to recognize objects on the heap. More...
typedef CMatrixBase< CMatrix< T > > tBase
 Base class.
typedef T tElement
 Matrix element type.
typedef CMatrix< T > tMatrix
 Matrix type.
typedef Eigen::Matrix
< tElement, Eigen::Dynamic,
Eigen::Dynamic,
Eigen::RowMajor|Eigen::AutoAlign > 
tStorage
 Underlying matrix data (see the Eigen library).

Public Member Functions

CMatrixabs ()
 Makes absolute value of all elements.
tStorageasEigen ()
 Returns reference to the underlying matrix data (see the Eigen library).
const tStorageasEigen () const
T & at (tSize Row, tSize Col)
 Returns reference to the element [Row][Col].
const T & at (tSize Row, tSize Col) const
 Method returns element (by value) at (row, col).
T & at (tSize i)
 Returns the subscripted pixel.
const T & at (tSize i) const
template<typename T >
 CMatrix ()
template<typename T >
 CMatrix (tSize NumOfRows, tSize NumOfCols)
template<typename T >
 CMatrix (const CMatrix< T > &Matrix, tSize Row, tSize Col, tSize NumOfRows, tSize NumOfCols)
template<typename T >
 CMatrix (const CMatrix< T > &Matrix)
 CMatrix ()
 Declare iterators.
template<typename Derived >
 CMatrix (const Eigen::MatrixBase< Derived > &Matrix)
 CMatrix (tSize NumOfRows, tSize NumOfCols)
 Constructor.
 CMatrix (const CMatrix &Matrix, tSize Row, tSize Col, tSize NumOfRows, tSize NumOfCols)
 Constructor.
 CMatrix (const CMatrix &Matrix)
 Copy constructor.
template<typename Derived >
 CMatrix (const Eigen::MatrixBase< Derived > &Matrix)
 Constructor.
tSize cols () const
template<typename T >
CMatrix< T > & create (tSize NumOfRows, tSize NumOfCols)
template<typename T >
CMatrix< T > & create (const CMatrix< T > &Matrix, tSize Row, tSize Col, tSize NumOfRows, tSize NumOfCols)
CMatrixcreate (tSize NumOfRows, tSize NumOfCols)
 Re-allocates memory for the matrix if needed.
CMatrixcreate (const CMatrix &Matrix, tSize Row, tSize Col, tSize NumOfRows, tSize NumOfCols)
 Re-creates the matrix.
template<typename Derived >
CMatrixcreate (const CMatrixBase< Derived > &Matrix)
 Re-creates the matrix.
template<typename Derived >
CMatrixcreate (const Eigen::MatrixBase< Derived > &Matrix)
 Assignment operator.
template<typename Derived >
CMatrix< T > & create (const CMatrixBase< Derived > &Matrix)
template<typename Derived >
CMatrix< T > & create (const Eigen::MatrixBase< Derived > &Matrix)
CMatrixfill (const T &Value)
 Fills the matrix using a given value.
template<class Function >
Function forEach (Function Func)
 Calls a function object for every matrix element.
template<class Function >
Function forEach (Function Func) const
 Calls a function object for every matrix element.
template<class Function >
Function forEach (Function Func)
 Calls a function object for every matrix coefficient.
template<class Function >
Function forEach (Function Func) const
 Calls a function object for every matrix coefficient.
tSize getColOffset () const
 Returns column offset.
T * getColPtr (tSize Col)
 Returns pointer to the first element of matrix column.
const T * getColPtr (tSize Col) const
tSize getIdx (tSize Row, tSize Col) const
 Calculates index of a specified pixel.
tMatrixgetImpl ()
 Returns reference to the matrix implementation.
const tMatrixgetImpl () const
tSize getNumOfCols () const
tSize getNumOfRows () const
 Returns the matrix dimensions.
T * getPtr ()
 Returns pointer to the first matrix element.
const T * getPtr () const
T * getPtr (tSize Row, tSize Col)
 Returns pointer to the given element.
const T * getPtr (tSize Row, tSize Col) const
int getReferencesCount () const
 Returns the number of references.
tSize getRowOffset () const
 Returns row offset.
T * getRowPtr (tSize Row)
 Returns pointer to the first element of matrix row.
const T * getRowPtr (tSize Row) const
bool isOnHeap () const
 Returns true if the object is allocated on the heap.
bool isSquare () const
 Returns true of the matrix is square.
 MDS_SHAREDPTR (CMatrix)
 Smart pointer type.
CMatrixmult (const CMatrix &m1, const CMatrix &m2)
 Makes this to be result of multiplication of two matrices.
CMatrixones ()
 Sets all elements to one.
T & operator() (tSize Row, tSize Col)
 Returns reference to the element [Row][Col].
const T & operator() (tSize Row, tSize Col) const
 Method returns element (by value) at (row, col).
T & operator() (tSize i)
 Returns the subscripted pixel.
const T & operator() (tSize i) const
template<typename T >
CMatrix< T > & operator*= (const CMatrix< T > &Matrix)
template<typename U >
CMatrix< T > & operator*= (const CScalar< U > &c)
CMatrixoperator*= (const CMatrix &Matrix)
 Element wise product.
template<typename U >
CMatrixoperator*= (const CScalar< U > &c)
 Multiplies all elements by scalar.
template<typename T >
CMatrix< T > & operator+= (const CMatrix< T > &Matrix)
template<typename U >
CMatrix< T > & operator+= (const CScalar< U > &c)
CMatrixoperator+= (const CMatrix &Matrix)
 Element wise addition.
template<typename U >
CMatrixoperator+= (const CScalar< U > &c)
 Adds scalar to all elements.
template<typename T >
CMatrix< T > & operator-= (const CMatrix< T > &Matrix)
template<typename U >
CMatrix< T > & operator-= (const CScalar< U > &c)
CMatrixoperator-= (const CMatrix &Matrix)
 Element wise subtraction.
template<typename U >
CMatrixoperator-= (const CScalar< U > &c)
 Subtracts scalar to all elements.
template<typename T >
CMatrix< T > & operator/= (const CMatrix< T > &Matrix)
template<typename U >
CMatrix< T > & operator/= (const CScalar< U > &c)
CMatrixoperator/= (const CMatrix &Matrix)
 Element wise division.
template<typename U >
CMatrixoperator/= (const CScalar< U > &c)
 Divides all elements by scalar.
CMatrixoperator= (const CMatrix &Matrix)
 Assignment operator.
template<typename Derived >
CMatrixoperator= (const Eigen::MatrixBase< Derived > &Matrix)
 Assignment operator.
template<typename T >
CMatrix< T > & operator= (const CMatrix< T > &Matrix)
template<typename Derived >
CMatrix< T > & operator= (const Eigen::MatrixBase< Derived > &Matrix)
template<class Function >
Function pforEach (Function Func)
 Calls a function object for every matrix element.
template<class Function >
Function pforEach (Function Func) const
 Calls a function object for every matrix element.
template<class Function >
Function pforEach (Function Func)
 Calls a function object for every matrix coefficient.
template<class Function >
Function pforEach (Function Func) const
 Calls a function object for every matrix coefficient.
tSize rows () const
 Returns the matrix dimensions.
tMatrixset (tSize row, tSize col, const tElement &Value)
 Method sets value of element at (row, col).
CMatrixset (tSize Row, tSize Col, const T &Value)
 Sets the element of matrix at the position [row][col].
tMatrixset (tSize i, const tElement &Value)
 Sets the subscripted matrix coefficient.
CMatrixset (tSize i, const T &Value)
 Sets the subscripted voxel.
CMatrixtranspose (const CMatrix &Matrix)
 Makes this to be transpose of a given matrix.
CMatrixunit ()
 Makes the matrix unit.
CMatrixzeros ()
 Zeros the matrix.
virtual ~CMatrix ()
 Virtual destructor.

Static Public Member Functions

static void * operator new (std::size_t Size)
 Allocates a new object on the heap.

Protected Member Functions

void addReference () const
 Increase the reference counter.
bool delReference () const
 Decrease the reference counter.

Protected Attributes

int m_iHeapObject
 Flag initialized if the object is on the heap.
int m_iReferences
 The number of references to the object.
tStorage m_Matrix
 Underlying matrix data (see the Eigen math library).

Detailed Description

template<typename T>
class mds::math::CMatrix< T >

Class template for a two dimensional dense matrix stored in row-major format.


Member Typedef Documentation

template<typename T>
typedef CMatrixBase<CMatrix<T> > mds::math::CMatrix< T >::tBase

Base class.

template<typename T>
typedef T mds::math::CMatrix< T >::tElement

Matrix element type.

Reimplemented from mds::math::CMatrixBase< CMatrix< T > >.

typedef CMatrix< T > mds::math::CMatrixBase< CMatrix< T > >::tMatrix [inherited]

Matrix type.

template<typename T>
typedef Eigen::Matrix<tElement, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor | Eigen::AutoAlign> mds::math::CMatrix< T >::tStorage

Underlying matrix data (see the Eigen library).


Member Enumeration Documentation

template<typename T>
anonymous enum

Templates that require members of the CMatrix class can use this enum to check the existence.

Enumerator:
CLASS_MATRIX 
anonymous enum [inherited]

Templates that require members of the CObject class can use this enum to check the existence.

Enumerator:
CLASS_OBJECT 
anonymous enum [inherited]

Signature used to recognize objects on the heap.

Enumerator:
HEAP_OBJECT 

Constructor & Destructor Documentation

template<typename T >
mds::math::CMatrix< T >::CMatrix ( )

Declare iterators.

  • Adds types tIterator and tConstIterator. Default constructor.
template<typename T >
mds::math::CMatrix< T >::CMatrix ( tSize  NumOfRows,
tSize  NumOfCols 
)

Constructor.

  • Parameters involve the matrix dimensions.
template<typename T >
mds::math::CMatrix< T >::CMatrix ( const CMatrix< T > &  Matrix,
tSize  Row,
tSize  Col,
tSize  NumOfRows,
tSize  NumOfCols 
)

Constructor.

  • Creates a submatrix of a given matrix.
  • Makes own copy of the data.
template<typename T >
mds::math::CMatrix< T >::CMatrix ( const CMatrix< T > &  Matrix)

Copy constructor.

  • Makes a new copy of the data.
template<typename T >
template<typename Derived >
mds::math::CMatrix< T >::CMatrix ( const Eigen::MatrixBase< Derived > &  Matrix)

Constructor.

  • Makes a new copy of the data.
template<typename T >
CMatrix::~CMatrix ( ) [virtual]

Virtual destructor.

template<typename T>
template<typename T >
mds::math::CMatrix< T >::CMatrix ( )
template<typename T>
template<typename T >
mds::math::CMatrix< T >::CMatrix ( tSize  NumOfRows,
tSize  NumOfCols 
)
template<typename T>
template<typename T >
mds::math::CMatrix< T >::CMatrix ( const CMatrix< T > &  Matrix,
tSize  Row,
tSize  Col,
tSize  NumOfRows,
tSize  NumOfCols 
)
template<typename T>
template<typename T >
mds::math::CMatrix< T >::CMatrix ( const CMatrix< T > &  Matrix)
template<typename T>
template<typename Derived >
mds::math::CMatrix< T >::CMatrix ( const Eigen::MatrixBase< Derived > &  Matrix)

Member Function Documentation

template<typename T >
CMatrix< T > & CMatrix::abs ( )

Makes absolute value of all elements.

  • Returns reference to this.
void mds::base::CObject::addReference ( ) const [protected, inherited]

Increase the reference counter.

template<typename T>
tStorage& mds::math::CMatrix< T >::asEigen ( )

Returns reference to the underlying matrix data (see the Eigen library).

template<typename T>
const tStorage& mds::math::CMatrix< T >::asEigen ( ) const
template<typename T>
T& mds::math::CMatrix< T >::at ( tSize  Row,
tSize  Col 
)

Returns reference to the element [Row][Col].

Reimplemented from mds::math::CMatrixBase< CMatrix< T > >.

template<typename T>
const T& mds::math::CMatrix< T >::at ( tSize  row,
tSize  col 
) const

Method returns element (by value) at (row, col).

Reimplemented from mds::math::CMatrixBase< CMatrix< T > >.

template<typename T>
T& mds::math::CMatrix< T >::at ( tSize  i)

Returns the subscripted pixel.

Reimplemented from mds::math::CMatrixBase< CMatrix< T > >.

template<typename T>
const T& mds::math::CMatrix< T >::at ( tSize  i) const
template<typename T>
tSize mds::math::CMatrix< T >::cols ( ) const
template<typename T>
template<typename T >
CMatrix<T>& mds::math::CMatrix< T >::create ( tSize  NumOfRows,
tSize  NumOfCols 
)
template<typename T >
CMatrix< T > & mds::math::CMatrix< T >::create ( tSize  NumOfRows,
tSize  NumOfCols 
)

Re-allocates memory for the matrix if needed.

template<typename T>
template<typename T >
CMatrix<T>& mds::math::CMatrix< T >::create ( const CMatrix< T > &  Matrix,
tSize  Row,
tSize  Col,
tSize  NumOfRows,
tSize  NumOfCols 
)
template<typename T >
CMatrix< T > & mds::math::CMatrix< T >::create ( const CMatrix< T > &  Matrix,
tSize  Row,
tSize  Col,
tSize  NumOfRows,
tSize  NumOfCols 
)

Re-creates the matrix.

  • Makes own copy of the data.
template<typename T >
template<typename Derived >
CMatrix< T > & mds::math::CMatrix< T >::create ( const CMatrixBase< Derived > &  Matrix)

Re-creates the matrix.

  • Makes a new copy of the data.
template<typename T >
template<typename Derived >
CMatrix< T > & mds::math::CMatrix< T >::create ( const Eigen::MatrixBase< Derived > &  Matrix)

Assignment operator.

template<typename T>
template<typename Derived >
CMatrix<T>& mds::math::CMatrix< T >::create ( const CMatrixBase< Derived > &  Matrix)
template<typename T>
template<typename Derived >
CMatrix<T>& mds::math::CMatrix< T >::create ( const Eigen::MatrixBase< Derived > &  Matrix)
bool mds::base::CObject::delReference ( ) const [protected, inherited]

Decrease the reference counter.

  • Returns true if the decremented number of references is lower or equal to zero and object must be deleted.
template<typename T>
CMatrix< T > & CMatrix::fill ( const T &  Value)

Fills the matrix using a given value.

  • Returns reference to this.
template<typename T >
template<class Function >
Function mds::math::CMatrix< T >::forEach ( Function  Func)

Calls a function object for every matrix element.

Reimplemented from mds::math::CMatrixBase< CMatrix< T > >.

template<typename T >
template<class Function >
Function mds::math::CMatrix< T >::forEach ( Function  Func) const

Calls a function object for every matrix element.

Reimplemented from mds::math::CMatrixBase< CMatrix< T > >.

template<typename T>
template<class Function >
Function mds::math::CMatrix< T >::forEach ( Function  Func)

Calls a function object for every matrix coefficient.

Reimplemented from mds::math::CMatrixBase< CMatrix< T > >.

template<typename T>
template<class Function >
Function mds::math::CMatrix< T >::forEach ( Function  Func) const

Calls a function object for every matrix coefficient.

Reimplemented from mds::math::CMatrixBase< CMatrix< T > >.

template<typename T>
tSize mds::math::CMatrix< T >::getColOffset ( ) const

Returns column offset.

In other words, offset between two neighbouring elements in a matrix row.

Reimplemented from mds::math::CMatrixBase< CMatrix< T > >.

template<typename T>
T* mds::math::CMatrix< T >::getColPtr ( tSize  Col)

Returns pointer to the first element of matrix column.

template<typename T>
const T* mds::math::CMatrix< T >::getColPtr ( tSize  Col) const
template<typename T>
tSize mds::math::CMatrix< T >::getIdx ( tSize  Row,
tSize  Col 
) const

Calculates index of a specified pixel.

Reimplemented from mds::math::CMatrixBase< CMatrix< T > >.

tMatrix& mds::math::CMatrixBase< CMatrix< T > >::getImpl ( ) [inherited]

Returns reference to the matrix implementation.

const tMatrix& mds::math::CMatrixBase< CMatrix< T > >::getImpl ( ) const [inherited]
template<typename T>
tSize mds::math::CMatrix< T >::getNumOfCols ( ) const
template<typename T>
tSize mds::math::CMatrix< T >::getNumOfRows ( ) const

Returns the matrix dimensions.

Reimplemented from mds::math::CMatrixBase< CMatrix< T > >.

template<typename T>
T* mds::math::CMatrix< T >::getPtr ( )

Returns pointer to the first matrix element.

template<typename T>
const T* mds::math::CMatrix< T >::getPtr ( ) const
template<typename T>
T* mds::math::CMatrix< T >::getPtr ( tSize  Row,
tSize  Col 
)

Returns pointer to the given element.

template<typename T>
const T* mds::math::CMatrix< T >::getPtr ( tSize  Row,
tSize  Col 
) const

Returns the number of references.

template<typename T>
tSize mds::math::CMatrix< T >::getRowOffset ( ) const

Returns row offset.

In other words, offset between two neighbouring elements in a matrix column.

Reimplemented from mds::math::CMatrixBase< CMatrix< T > >.

template<typename T>
T* mds::math::CMatrix< T >::getRowPtr ( tSize  Row)

Returns pointer to the first element of matrix row.

template<typename T>
const T* mds::math::CMatrix< T >::getRowPtr ( tSize  Row) const
bool mds::base::CObject::isOnHeap ( ) const [inherited]

Returns true if the object is allocated on the heap.

template<typename T>
bool mds::math::CMatrix< T >::isSquare ( ) const

Returns true of the matrix is square.

template<typename T>
mds::math::CMatrix< T >::MDS_SHAREDPTR ( CMatrix< T >  )

Smart pointer type.

  • Declares type tSmartPtr.
template<typename T >
CMatrix< T > & CMatrix::mult ( const CMatrix< T > &  m1,
const CMatrix< T > &  m2 
)

Makes this to be result of multiplication of two matrices.

  • Throws CMultFailed() exception on failure.
  • Returns reference to this.
template<typename T >
CMatrix< T > & CMatrix::ones ( )

Sets all elements to one.

  • Returns reference to this.
static void* mds::base::CObject::operator new ( std::size_t  Size) [static, inherited]

Allocates a new object on the heap.

template<typename T>
T& mds::math::CMatrix< T >::operator() ( tSize  Row,
tSize  Col 
)

Returns reference to the element [Row][Col].

Reimplemented from mds::math::CMatrixBase< CMatrix< T > >.

template<typename T>
const T& mds::math::CMatrix< T >::operator() ( tSize  row,
tSize  col 
) const

Method returns element (by value) at (row, col).

Reimplemented from mds::math::CMatrixBase< CMatrix< T > >.

template<typename T>
T& mds::math::CMatrix< T >::operator() ( tSize  i)

Returns the subscripted pixel.

Reimplemented from mds::math::CMatrixBase< CMatrix< T > >.

template<typename T>
const T& mds::math::CMatrix< T >::operator() ( tSize  i) const
template<typename T>
template<typename T >
CMatrix<T>& mds::math::CMatrix< T >::operator*= ( const CMatrix< T > &  Matrix)
template<typename T>
template<typename U >
CMatrix<T>& mds::math::CMatrix< T >::operator*= ( const CScalar< U > &  c)
template<typename T >
CMatrix< T > & mds::math::CMatrix< T >::operator*= ( const CMatrix< T > &  Matrix)

Element wise product.

template<typename T >
template<typename U >
CMatrix< T > & mds::math::CMatrix< T >::operator*= ( const CScalar< U > &  c)

Multiplies all elements by scalar.

  • An operator that allow conversion from U to T must be defined!
template<typename T>
template<typename T >
CMatrix<T>& mds::math::CMatrix< T >::operator+= ( const CMatrix< T > &  Matrix)
template<typename T>
template<typename U >
CMatrix<T>& mds::math::CMatrix< T >::operator+= ( const CScalar< U > &  c)
template<typename T >
CMatrix< T > & mds::math::CMatrix< T >::operator+= ( const CMatrix< T > &  Matrix)

Element wise addition.

template<typename T >
template<typename U >
CMatrix< T > & mds::math::CMatrix< T >::operator+= ( const CScalar< U > &  c)

Adds scalar to all elements.

  • An operator that allow conversion from U to T must be defined!
template<typename T>
template<typename T >
CMatrix<T>& mds::math::CMatrix< T >::operator-= ( const CMatrix< T > &  Matrix)
template<typename T>
template<typename U >
CMatrix<T>& mds::math::CMatrix< T >::operator-= ( const CScalar< U > &  c)
template<typename T >
CMatrix< T > & mds::math::CMatrix< T >::operator-= ( const CMatrix< T > &  Matrix)

Element wise subtraction.

template<typename T >
template<typename U >
CMatrix< T > & mds::math::CMatrix< T >::operator-= ( const CScalar< U > &  c)

Subtracts scalar to all elements.

  • An operator that allow conversion from U to T must be defined!
template<typename T>
template<typename T >
CMatrix<T>& mds::math::CMatrix< T >::operator/= ( const CMatrix< T > &  Matrix)
template<typename T>
template<typename U >
CMatrix<T>& mds::math::CMatrix< T >::operator/= ( const CScalar< U > &  c)
template<typename T >
CMatrix< T > & mds::math::CMatrix< T >::operator/= ( const CMatrix< T > &  Matrix)

Element wise division.

template<typename T >
template<typename U >
CMatrix< T > & mds::math::CMatrix< T >::operator/= ( const CScalar< U > &  c)

Divides all elements by scalar.

  • An operator that allow conversion from U to T must be defined!
template<typename T >
CMatrix< T > & mds::math::CMatrix< T >::operator= ( const CMatrix< T > &  Matrix)

Assignment operator.

template<typename T >
template<typename Derived >
CMatrix< T > & mds::math::CMatrix< T >::operator= ( const Eigen::MatrixBase< Derived > &  Matrix)

Assignment operator.

template<typename T>
template<typename T >
CMatrix<T>& mds::math::CMatrix< T >::operator= ( const CMatrix< T > &  Matrix)
template<typename T>
template<typename Derived >
CMatrix<T>& mds::math::CMatrix< T >::operator= ( const Eigen::MatrixBase< Derived > &  Matrix)
template<typename T >
template<class Function >
Function mds::math::CMatrix< T >::pforEach ( Function  Func)

Calls a function object for every matrix element.

  • Parallel version.

Reimplemented from mds::math::CMatrixBase< CMatrix< T > >.

template<typename T >
template<class Function >
Function mds::math::CMatrix< T >::pforEach ( Function  Func) const

Calls a function object for every matrix element.

  • Parallel version.

Reimplemented from mds::math::CMatrixBase< CMatrix< T > >.

template<typename T>
template<class Function >
Function mds::math::CMatrix< T >::pforEach ( Function  Func)

Calls a function object for every matrix coefficient.

  • Parallel version.

Reimplemented from mds::math::CMatrixBase< CMatrix< T > >.

template<typename T>
template<class Function >
Function mds::math::CMatrix< T >::pforEach ( Function  Func) const

Calls a function object for every matrix coefficient.

  • Parallel version.

Reimplemented from mds::math::CMatrixBase< CMatrix< T > >.

template<typename T>
tSize mds::math::CMatrix< T >::rows ( ) const

Returns the matrix dimensions.

Reimplemented from mds::math::CMatrixBase< CMatrix< T > >.

tMatrix& mds::math::CMatrixBase< CMatrix< T > >::set ( tSize  row,
tSize  col,
const tElement Value 
) [inherited]

Method sets value of element at (row, col).

tMatrix& mds::math::CMatrixBase< CMatrix< T > >::set ( tSize  i,
const tElement Value 
) [inherited]

Sets the subscripted matrix coefficient.

template<typename T>
CMatrix& mds::math::CMatrix< T >::set ( tSize  Row,
tSize  Col,
const T &  Value 
)

Sets the element of matrix at the position [row][col].

template<typename T>
CMatrix& mds::math::CMatrix< T >::set ( tSize  i,
const T &  Value 
)

Sets the subscripted voxel.

template<typename T >
CMatrix< T > & CMatrix::transpose ( const CMatrix< T > &  Matrix)

Makes this to be transpose of a given matrix.

  • Throws CTransposeFailed() exception on failure.
  • Returns reference to this.
template<typename T >
CMatrix< T > & CMatrix::unit ( )

Makes the matrix unit.

  • Returns reference to this.
template<typename T >
CMatrix< T > & CMatrix::zeros ( )

Zeros the matrix.

  • Returns reference to this.

Member Data Documentation

int mds::base::CObject::m_iHeapObject [mutable, protected, inherited]

Flag initialized if the object is on the heap.

int mds::base::CObject::m_iReferences [mutable, protected, inherited]

The number of references to the object.

  • Zero if there is no reference.
template<typename T>
tStorage mds::math::CMatrix< T >::m_Matrix [protected]

Underlying matrix data (see the Eigen math library).


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