Go to the source code of this file.
Functions | |
_zgematrix | t (const zgematrix &mat) |
_zgematrix | i (const zgematrix &mat) |
_zgematrix | conj (const zgematrix &mat) |
_zgematrix | conjt (const zgematrix &mat) |
void | idamax (long &i, long &j, const zgematrix &mat) |
comple | damax (const zgematrix &mat) |
_zgematrix t | ( | const zgematrix & | mat | ) | [inline] |
_zgematrix i | ( | const zgematrix & | mat | ) | [inline] |
return its inverse matrix
Definition at line 16 of file zgematrix-calc.hpp.
References _(), zgematrix::identity(), zgematrix::m, zgematrix::n, and zgematrix::zgesv().
{VERBOSE_REPORT; #ifdef CPPL_DEBUG if(mat.m!=mat.n){ ERROR_REPORT; std::cerr << "This matrix is not square and has no inverse matrix." << std::endl << "Your input was (" << mat.m << "x" << mat.n << ")." << std::endl; exit(1); } #endif//CPPL_DEBUG zgematrix mat_cp(mat), mat_inv(mat.m,mat.n); mat_inv.identity(); mat_cp.zgesv(mat_inv); return _(mat_inv); }
_zgematrix conj | ( | const zgematrix & | mat | ) | [inline] |
return its conjugate matrix
Definition at line 40 of file zgematrix-calc.hpp.
References _(), conj(), i(), zgematrix::m, and zgematrix::n.
_zgematrix conjt | ( | const zgematrix & | mat | ) | [inline] |
return its conjugate transposed matrix
Definition at line 52 of file zgematrix-calc.hpp.
References _(), conj(), i(), zgematrix::m, and zgematrix::n.
search the index of element having the largest absolute value in 0-based numbering system
Definition at line 69 of file zgematrix-calc.hpp.
References zgematrix::array, zgematrix::m, and zgematrix::n.
return its largest absolute value
Definition at line 78 of file zgematrix-calc.hpp.
References zgematrix::array, zgematrix::m, and zgematrix::n.