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

Public Member Functions

 Matrix ()
 
 Matrix (unsigned int rows, unsigned int cols)
 
 Matrix (const Matrix< std::complex< double >, 0, 0 > &matrix)
 
 Matrix (Matrix< std::complex< double >, 0, 0 > &&matrix)
 
 ~Matrix ()
 
Matrix< std::complex< double >, 0, 0 > & operator= (const Matrix< std::complex< double >, 0, 0 > &rhs)
 
Matrix< std::complex< double >, 0, 0 > & operator= (Matrix< std::complex< double >, 0, 0 > &&rhs)
 
const std::complex< double > & at (unsigned int row, unsigned int col) const
 
std::complex< double > & at (unsigned int row, unsigned int col)
 
unsigned int getNumRows () const
 
unsigned int getNumCols () const
 
const Matrix< std::complex< double >, 0, 0 > operator* (const Matrix< std::complex< double >, 0, 0 > &rhs) const
 
void invert ()
 
std::complex< double > determinant ()
 

Constructor & Destructor Documentation

◆ Matrix() [1/4]

TBTK::Matrix< std::complex< double >, 0, 0 >::Matrix ( )
inline

Constructor.

◆ Matrix() [2/4]

TBTK::Matrix< std::complex< double >, 0, 0 >::Matrix ( unsigned int  rows,
unsigned int  cols 
)
inline

Constructor.

◆ Matrix() [3/4]

TBTK::Matrix< std::complex< double >, 0, 0 >::Matrix ( const Matrix< std::complex< double >, 0, 0 > &  matrix)
inline

Copy constructor.

◆ Matrix() [4/4]

TBTK::Matrix< std::complex< double >, 0, 0 >::Matrix ( Matrix< std::complex< double >, 0, 0 > &&  matrix)
inline

Move constructor.

◆ ~Matrix()

TBTK::Matrix< std::complex< double >, 0, 0 >::~Matrix ( )
inline

Destructor.

Member Function Documentation

◆ at() [1/2]

const std::complex< double > & TBTK::Matrix< std::complex< double >, 0, 0 >::at ( unsigned int  row,
unsigned int  col 
) const
inline

Returns a constant reference to the data element.

◆ at() [2/2]

std::complex< double > & TBTK::Matrix< std::complex< double >, 0, 0 >::at ( unsigned int  row,
unsigned int  col 
)
inline

Returns a reference to the data element.

◆ determinant()

std::complex< double > TBTK::Matrix< std::complex< double >, 0, 0 >::determinant ( )
inline

Determinant.

◆ getNumCols()

unsigned int TBTK::Matrix< std::complex< double >, 0, 0 >::getNumCols ( ) const
inline

Get number of columns.

◆ getNumRows()

unsigned int TBTK::Matrix< std::complex< double >, 0, 0 >::getNumRows ( ) const
inline

Get number of rows.

◆ invert()

void TBTK::Matrix< std::complex< double >, 0, 0 >::invert ( )
inline

Invert.

◆ operator*()

const Matrix< std::complex< double >, 0, 0 > TBTK::Matrix< std::complex< double >, 0, 0 >::operator* ( const Matrix< std::complex< double >, 0, 0 > &  rhs) const
inline

Multiplication operator.

◆ operator=() [1/2]

Matrix< std::complex< double >, 0, 0 > & TBTK::Matrix< std::complex< double >, 0, 0 >::operator= ( const Matrix< std::complex< double >, 0, 0 > &  rhs)
inline

Assignment operator.

◆ operator=() [2/2]

Matrix< std::complex< double >, 0, 0 > & TBTK::Matrix< std::complex< double >, 0, 0 >::operator= ( Matrix< std::complex< double >, 0, 0 > &&  rhs)
inline

Move assignment operator.


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