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] |
return transposed zgematrix
Definition at line 3 of file _zgematrix-calc.hpp.
References _(), _zgematrix::destroy(), i(), zgematrix::m, _zgematrix::m, _zgematrix::n, and zgematrix::n.
_zgematrix i | ( | const _zgematrix & | mat | ) | [inline] |
return its inverse matrix
Definition at line 19 of file _zgematrix-calc.hpp.
References _(), zgematrix::identity(), _zgematrix::m, zgematrix::m, zgematrix::n, _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); zgematrix mat_inv(mat_cp.m,mat_cp.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 43 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 54 of file _zgematrix-calc.hpp.
References _(), conj(), _zgematrix::destroy(), i(), zgematrix::m, _zgematrix::m, _zgematrix::n, and zgematrix::n.
void idamax | ( | long & | i, |
long & | j, | ||
const _zgematrix & | mat | ||
) | [inline] |
search the index of element having the largest absolute value in 0-based numbering system
Definition at line 74 of file _zgematrix-calc.hpp.
References _zgematrix::array, _zgematrix::destroy(), _zgematrix::m, and _zgematrix::n.
comple damax | ( | const _zgematrix & | mat | ) | [inline] |
return its largest absolute value
Definition at line 85 of file _zgematrix-calc.hpp.
References _zgematrix::array, _zgematrix::destroy(), _zgematrix::m, and _zgematrix::n.