TBTK
TBTK::SpinMatrix Class Reference
Inheritance diagram for TBTK::SpinMatrix:
TBTK::Matrix< std::complex< double >, 2, 2 >

Public Member Functions

 SpinMatrix ()
 
 ~SpinMatrix ()
 
SpinMatrixoperator= (std::complex< double > value)
 
SpinMatrixoperator+= (const SpinMatrix &spinMatrix)
 
SpinMatrixoperator-= (const SpinMatrix &spinMatrix)
 
double getDensity () const
 
Vector3d getDirection () const
 
- Public Member Functions inherited from TBTK::Matrix< std::complex< double >, 2, 2 >
 Matrix ()
 
 Matrix (const Matrix< std::complex< double >, ROWS, COLS > &matrix)
 
 Matrix (Matrix< std::complex< double >, ROWS, COLS > &&matrix)
 
 ~Matrix ()
 
Matrix< std::complex< double >, ROWS, COLS > & operator= (const Matrix< std::complex< double >, ROWS, COLS > &rhs)
 
Matrix< std::complex< double >, ROWS, COLS > & operator= (Matrix< std::complex< double >, ROWS, COLS > &&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
 

Constructor & Destructor Documentation

TBTK::SpinMatrix::SpinMatrix ( )

Constructor.

TBTK::SpinMatrix::~SpinMatrix ( )

Destructor.

Member Function Documentation

double TBTK::SpinMatrix::getDensity ( ) const

Get desnity.

Vector3d TBTK::SpinMatrix::getDirection ( ) const

Get spin direction.

SpinMatrix& TBTK::SpinMatrix::operator+= ( const SpinMatrix spinMatrix)

Addition equality operator.

SpinMatrix& TBTK::SpinMatrix::operator-= ( const SpinMatrix spinMatrix)

Addition equality operator.

SpinMatrix& TBTK::SpinMatrix::operator= ( std::complex< double >  value)

Assignment operator for assigning a single value to every element of the matrix.


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