TBTK
Need a break? Support the development by playing Polarity Puzzles
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

◆ Matrix() [1/3]

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

Constructor.

◆ Matrix() [2/3]

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

Copy constructor.

◆ Matrix() [3/3]

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

Move constructor.

◆ ~Matrix()

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

Destructor.

Member Function Documentation

◆ at() [1/2]

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.

◆ at() [2/2]

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.

◆ getNumCols()

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

Get number of columns.

◆ getNumRows()

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

Get number of rows.

◆ operator=() [1/2]

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.

◆ operator=() [2/2]

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: