matrix.h File Reference
|
LibRPA
|
utilies to handle square matrix and related operations More...
#include <ostream>#include <cassert>#include <fstream>
Include dependency graph for matrix.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
| class | matrix |
Functions | |
| matrix | operator+ (const matrix &m1, const matrix &m2) |
| matrix | operator- (const matrix &m1, const matrix &m2) |
| matrix | operator* (const matrix &m1, const matrix &m2) |
| matrix | operator* (const double &s, const matrix &m) |
| matrix | operator* (const matrix &m, const double &s) |
| matrix | transpose (const matrix &m) |
| double | trace_on (const matrix &A, const matrix &B) |
| double | mdot (const matrix &A, const matrix &B) |
| std::ostream & | operator<< (std::ostream &os, const matrix &m) |
| matrix | power_symat (matrix &mat, double power, double threshold=-1e16) |
| compute the power of a symmetric matrix. Symmetry not checked itself | |
| void | print_matrix (const char *desc, const matrix &mat) |
| void | print_matrix_mm (const matrix &mat, std::ostream &os, double threshold=1e-15, bool row_first=true) |
| void | print_matrix_mm (const matrix &mat, const std::string &fn, double threshold=1e-15, bool row_first=true) |
Detailed Description
utilies to handle square matrix and related operations
- Note
- mostly from Peize Lin's code, with some modification by minyez.
- Date
- 2018-07-29 update by Peize Lin
- 2022-05-06 update by minyez
Generated by