ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
ModuleBase::ComplexMatrix Class Reference

#include <complexmatrix.h>

Collaboration diagram for ModuleBase::ComplexMatrix:

Public Types

using type = std::complex< double >
 

Public Member Functions

 ComplexMatrix ()
 
 ComplexMatrix (const int nrows, const int ncols, const bool flag_zero=true)
 
 ComplexMatrix (const ComplexMatrix &m1)
 
 ComplexMatrix (ComplexMatrix &&m1)
 
 ComplexMatrix (const matrix &m)
 
 ~ComplexMatrix ()
 
void create (const int nrow, const int ncol, const bool flag_zero=true)
 
ComplexMatrixoperator= (const ComplexMatrix &m)
 
ComplexMatrixoperator= (ComplexMatrix &&m)
 
std::complex< double > & operator() (const int ir, const int ic)
 
const std::complex< double > & operator() (const int ir, const int ic) const
 
ComplexMatrixoperator*= (const std::complex< double > &s)
 
ComplexMatrixoperator+= (const ComplexMatrix &m)
 
ComplexMatrixoperator-= (const ComplexMatrix &m)
 
matrix real () const
 
void zero_out (void)
 
void set_as_identity_matrix (void)
 
std::ostream & print (std::ostream &os, const double threshold_abs=0.0, const double threshold_imag=0.0) const
 
bool checkreal (void)
 

Public Attributes

int nr =0
 
int nc =0
 
int size =0
 
std::complex< double > * c =nullptr
 

Member Typedef Documentation

◆ type

using ModuleBase::ComplexMatrix::type = std::complex<double>

Constructor & Destructor Documentation

◆ ComplexMatrix() [1/5]

ModuleBase::ComplexMatrix::ComplexMatrix ( )
inline

◆ ComplexMatrix() [2/5]

ModuleBase::ComplexMatrix::ComplexMatrix ( const int  nrows,
const int  ncols,
const bool  flag_zero = true 
)
Here is the call graph for this function:

◆ ComplexMatrix() [3/5]

ModuleBase::ComplexMatrix::ComplexMatrix ( const ComplexMatrix m1)

◆ ComplexMatrix() [4/5]

ModuleBase::ComplexMatrix::ComplexMatrix ( ComplexMatrix &&  m1)

◆ ComplexMatrix() [5/5]

ModuleBase::ComplexMatrix::ComplexMatrix ( const matrix m)
explicit

◆ ~ComplexMatrix()

ModuleBase::ComplexMatrix::~ComplexMatrix ( )

Member Function Documentation

◆ checkreal()

bool ModuleBase::ComplexMatrix::checkreal ( void  )
Here is the caller graph for this function:

◆ create()

void ModuleBase::ComplexMatrix::create ( const int  nrow,
const int  ncol,
const bool  flag_zero = true 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator()() [1/2]

std::complex< double > & ModuleBase::ComplexMatrix::operator() ( const int  ir,
const int  ic 
)
inline

◆ operator()() [2/2]

const std::complex< double > & ModuleBase::ComplexMatrix::operator() ( const int  ir,
const int  ic 
) const
inline

◆ operator*=()

ComplexMatrix & ModuleBase::ComplexMatrix::operator*= ( const std::complex< double > &  s)

◆ operator+=()

ComplexMatrix & ModuleBase::ComplexMatrix::operator+= ( const ComplexMatrix m)

◆ operator-=()

ComplexMatrix & ModuleBase::ComplexMatrix::operator-= ( const ComplexMatrix m)

◆ operator=() [1/2]

ComplexMatrix & ModuleBase::ComplexMatrix::operator= ( ComplexMatrix &&  m)

◆ operator=() [2/2]

ComplexMatrix & ModuleBase::ComplexMatrix::operator= ( const ComplexMatrix m)
Here is the call graph for this function:

◆ print()

std::ostream & ModuleBase::ComplexMatrix::print ( std::ostream &  os,
const double  threshold_abs = 0.0,
const double  threshold_imag = 0.0 
) const
Here is the caller graph for this function:

◆ real()

matrix ModuleBase::ComplexMatrix::real ( ) const
Here is the caller graph for this function:

◆ set_as_identity_matrix()

void ModuleBase::ComplexMatrix::set_as_identity_matrix ( void  )

◆ zero_out()

void ModuleBase::ComplexMatrix::zero_out ( void  )
Here is the caller graph for this function:

Member Data Documentation

◆ c

std::complex<double>* ModuleBase::ComplexMatrix::c =nullptr

◆ nc

int ModuleBase::ComplexMatrix::nc =0

◆ nr

int ModuleBase::ComplexMatrix::nr =0

◆ size

int ModuleBase::ComplexMatrix::size =0

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