matrix.h Source File
LibRPA
|
matrix.h
Go to the documentation of this file.
35 matrix( const int nrows, const int ncols, const bool flag_zero=true ); // Peize Lin add flag_zero 2018-07-02
40 void create( const int nrow, const int ncol, const bool flag_zero=true ); // Peize Lin add flag_zero 2018-07-02
115 void print_matrix_mm(const matrix &mat, std::ostream &os, double threshold = 1e-15, bool row_first = true);
116 void print_matrix_mm(const matrix &mat, const std::string &fn, double threshold = 1e-15, bool row_first = true);
Definition: matrix.h:23
static const double EQUAL_THRES
Threshold to treat the matrix as equal, added by minyez 2022-05-06.
Definition: matrix.h:27
unsigned count_absle(double thres) const
count the matrix element whose abs value is less equal than threshold
Definition: matrix.cpp:440
unsigned count_absge(double thres) const
count the matrix element whose abs value is greater equal than threshold
Definition: matrix.cpp:448
matrix power_symat(matrix &mat, double power, double threshold=-1e16)
compute the power of a symmetric matrix. Symmetry not checked itself
Definition: matrix.cpp:457
Generated by