matrix Class Reference
|
LibRPA
|
matrix Class Reference
Public Member Functions | |
| matrix (const int nrows, const int ncols, const bool flag_zero=true) | |
| matrix (const matrix &m1) | |
| matrix (matrix &&m1) | |
| void | create (const int nrow, const int ncol, const bool flag_zero=true) |
| matrix & | operator= (const matrix &m1) |
| matrix & | operator= (matrix &&m1) |
| double & | operator() (const int ir, const int ic) |
| const double & | operator() (const int ir, const int ic) const |
| void | operator*= (const double &s) |
| void | operator+= (const double &s) |
| void | operator+= (const matrix &m) |
| void | operator-= (const double &s) |
| void | operator-= (const matrix &m) |
| bool | operator== (const matrix &m) |
| matrix | operator+ (double s) const |
| matrix | operator- (double s) const |
| matrix | Inverse (void) |
| double | det (void) |
| double | trace_on (void) const |
| void | zero_out (void) |
| void | get_extreme_eigen_values (double &ev_lower, double &ev_upper) const |
| void | reshape (const double nr_new, const double nc_new) |
| double | max () const |
| double | max (int &ir, int &ic) const |
| double | min () const |
| double | absmax () const |
| unsigned | count_absle (double thres) const |
| count the matrix element whose abs value is less equal than threshold | |
| unsigned | count_absge (double thres) const |
| count the matrix element whose abs value is greater equal than threshold | |
Public Attributes | |
| int | nr =0 |
| int | nc =0 |
| int | size =0 |
| double * | c =nullptr |
Static Public Attributes | |
| static const double | EQUAL_THRES = 1e-9 |
| Threshold to treat the matrix as equal, added by minyez 2022-05-06. | |
The documentation for this class was generated from the following files:
- matrix.h
- matrix.cpp
Generated by