TBTK
TBTK::Matrix< DataType, ROWS, COLS > Class Template Reference

Public Member Functions

 Matrix ()
 
 Matrix (const Matrix< DataType, ROWS, COLS > &matrix)
 
 Matrix (Matrix< DataType, ROWS, COLS > &&matrix)
 
 ~Matrix ()
 
Matrix< DataType, ROWS, COLS > & operator= (const Matrix< DataType, ROWS, COLS > &rhs)
 
Matrix< DataType, ROWS, COLS > & operator= (Matrix< DataType, ROWS, COLS > &&rhs)
 
const DataType & at (unsigned int row, unsigned int col) const
 
DataType & at (unsigned int row, unsigned int col)
 
unsigned int getNumRows () const
 
unsigned int getNumCols () const
 

Constructor & Destructor Documentation

template<typename DataType , unsigned int ROWS, unsigned int COLS>
TBTK::Matrix< DataType, ROWS, COLS >::Matrix ( )

Constructor.

template<typename DataType, unsigned int ROWS, unsigned int COLS>
TBTK::Matrix< DataType, ROWS, COLS >::Matrix ( const Matrix< DataType, ROWS, COLS > &  matrix)

Copy constructor.

template<typename DataType, unsigned int ROWS, unsigned int COLS>
TBTK::Matrix< DataType, ROWS, COLS >::Matrix ( Matrix< DataType, ROWS, COLS > &&  matrix)

Move constructor.

template<typename DataType , unsigned int ROWS, unsigned int COLS>
TBTK::Matrix< DataType, ROWS, COLS >::~Matrix ( )

Destructor.

Member Function Documentation

template<typename DataType , unsigned int ROWS, unsigned int COLS>
const DataType & TBTK::Matrix< DataType, ROWS, COLS >::at ( unsigned int  row,
unsigned int  col 
) const

Returns a constant reference to the data element.

template<typename DataType , unsigned int ROWS, unsigned int COLS>
DataType & TBTK::Matrix< DataType, ROWS, COLS >::at ( unsigned int  row,
unsigned int  col 
)

Returns a reference to the data element.

template<typename DataType , unsigned int ROWS, unsigned int COLS>
unsigned int TBTK::Matrix< DataType, ROWS, COLS >::getNumCols ( ) const

Get number of columns.

template<typename DataType , unsigned int ROWS, unsigned int COLS>
unsigned int TBTK::Matrix< DataType, ROWS, COLS >::getNumRows ( ) const

Get number of rows.

template<typename DataType, unsigned int ROWS, unsigned int COLS>
Matrix< DataType, ROWS, COLS > & TBTK::Matrix< DataType, ROWS, COLS >::operator= ( const Matrix< DataType, ROWS, COLS > &  rhs)

Assignment operator.

template<typename DataType, unsigned int ROWS, unsigned int COLS>
Matrix< DataType, ROWS, COLS > & TBTK::Matrix< DataType, ROWS, COLS >::operator= ( Matrix< DataType, ROWS, COLS > &&  rhs)

Move assignment operator.


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