TBTK
TBTK::Matrix< DataType, 0, 0 > Class Template Reference

Public Member Functions

 Matrix (unsigned int rows, unsigned int cols)
 
 Matrix (const Matrix< DataType, 0, 0 > &matrix)
 
 Matrix (Matrix< DataType, 0, 0 > &&matrix)
 
 ~Matrix ()
 
Matrix< DataType, 0, 0 > & operator= (const Matrix< DataType, 0, 0 > &rhs)
 
Matrix< DataType, 0, 0 > & operator= (Matrix< DataType, 0, 0 > &&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
 
const Matrix< DataType, 0, 0 > operator* (const Matrix< DataType, 0, 0 > &rhs) const
 

Constructor & Destructor Documentation

template<typename DataType >
TBTK::Matrix< DataType, 0, 0 >::Matrix ( unsigned int  rows,
unsigned int  cols 
)

Constructor.

template<typename DataType >
TBTK::Matrix< DataType, 0, 0 >::Matrix ( const Matrix< DataType, 0, 0 > &  matrix)

Copy constructor.

template<typename DataType >
TBTK::Matrix< DataType, 0, 0 >::Matrix ( Matrix< DataType, 0, 0 > &&  matrix)

Move constructor.

template<typename DataType >
TBTK::Matrix< DataType, 0, 0 >::~Matrix ( )

Destructor.

Member Function Documentation

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

Returns a constant reference to the data element.

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

Returns a reference to the data element.

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

Get number of columns.

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

Get number of rows.

template<typename DataType >
const Matrix< DataType, 0, 0 > TBTK::Matrix< DataType, 0, 0 >::operator* ( const Matrix< DataType, 0, 0 > &  rhs) const
inline

Multiplication operator.

template<typename DataType >
Matrix< DataType, 0, 0 > & TBTK::Matrix< DataType, 0, 0 >::operator= ( const Matrix< DataType, 0, 0 > &  rhs)

Assignment operator.

template<typename DataType >
Matrix< DataType, 0, 0 > & TBTK::Matrix< DataType, 0, 0 >::operator= ( Matrix< DataType, 0, 0 > &&  rhs)

Move assignment operator.


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