complexmatrix.h Source File
LibRPA
|
complexmatrix.h
30 ComplexMatrix(const int nrows,const int ncols,const bool flag_zero=true); // Peize Lin add flag_zero 2019-05-13
36 void create(const int nrow,const int ncol,const bool flag_zero=true); // Peize Lin add flag_zero 2019-05-13
83 ComplexMatrix operator-(const complex<double> &s, const ComplexMatrix &m); // minyez add 2022-06-06
84 ComplexMatrix operator-(const ComplexMatrix &m, const complex<double> &s); // minyez add 2022-06-06
132 * @param filter_original: whether to filter the small values when recovering the original matrix
135 ComplexMatrix power_hemat(ComplexMatrix &cmat, double power, bool keep_ev = false, bool filter_original = false,
144 void power_hemat_onsite(ComplexMatrix &cmat, double power, double threshold = -1e16); // Minye Zhang add 2022-07-07
148 void print_complex_matrix_file(const char *desc, const ComplexMatrix &mat, ofstream &fs, bool use_scientific);
149 void print_complex_matrix_mm(const ComplexMatrix &mat, ofstream &fs, double threshold = 1e-15, bool row_first = true);
150 void print_complex_matrix_file(const char *desc, const ComplexMatrix &mat, const string &fn, bool use_scientific);
151 void print_complex_matrix_mm(const ComplexMatrix &mat, const string &fn, double threshold = 1e-15, bool row_first = true);
Definition: complexmatrix.h:20
Definition: matrix.h:23
utilies to handle square matrix and related operations
void lib_printf(const char *format, Args &&... args)
printf that handles the stdout redirect
Definition: utils_io.h:13
Generated by