ComplexMatrix Class Reference
LibRPA
|
ComplexMatrix Class Reference
Public Member Functions | |
ComplexMatrix (const int nrows, const int ncols, const bool flag_zero=true) | |
ComplexMatrix (const ComplexMatrix &m1) | |
ComplexMatrix (ComplexMatrix &&m1) | |
ComplexMatrix (const matrix &m) | |
void | create (const int nrow, const int ncol, const bool flag_zero=true) |
ComplexMatrix & | operator= (const ComplexMatrix &m) |
ComplexMatrix & | operator= (ComplexMatrix &&m) |
complex< double > & | operator() (const int ir, const int ic) |
const complex< double > & | operator() (const int ir, const int ic) const |
ComplexMatrix & | operator*= (const complex< double > &s) |
ComplexMatrix & | operator+= (const ComplexMatrix &m) |
ComplexMatrix & | operator+= (const complex< double > &s) |
ComplexMatrix & | operator-= (const ComplexMatrix &m) |
matrix | real () const |
matrix | imag () const |
void | zero_out (void) |
void | set_as_identity_matrix (void) |
double | get_max_real () const |
Get the max real value of matrix element. | |
double | get_max_real (int &ir, int &ic) const |
double | get_max_imag () const |
Get the max imaginary value of matrix element. | |
double | get_max_abs () const |
double | get_max_abs_imag () const |
double | get_max_abs_offdiag () const |
bool | is_diagonal (const double &thres=1e-14) const |
Public Attributes | |
int | nr =0 |
int | nc =0 |
int | size =0 |
complex< double > * | c =nullptr |
The documentation for this class was generated from the following files:
- complexmatrix.h
- complexmatrix.cpp
Generated by