TBTK
Need a break? Support the development by playing Polarity Puzzles
TBTK::Matrix< DataType, 0, 0 > Class Template Reference

Public Member Functions

 Matrix ()
 
 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

◆ Matrix() [1/4]

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

Constructor.

◆ Matrix() [2/4]

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

Constructor.

◆ Matrix() [3/4]

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

Copy constructor.

◆ Matrix() [4/4]

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

Move constructor.

◆ ~Matrix()

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

Destructor.

Member Function Documentation

◆ at() [1/2]

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.

◆ at() [2/2]

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

Returns a reference to the data element.

◆ getNumCols()

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

Get number of columns.

◆ getNumRows()

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

Get number of rows.

◆ operator*()

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

Multiplication operator.

◆ operator=() [1/2]

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

Assignment operator.

◆ operator=() [2/2]

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: