CPPLapack
 All Classes Files Functions Variables Friends Pages
Functions
_zhematrix-calc.hpp File Reference

Go to the source code of this file.

Functions

_zhematrix t (const _zhematrix &mat)
 
_zgematrix i (const _zhematrix &mat)
 

Function Documentation

_zhematrix t ( const _zhematrix mat)
inline

return transposed _zhematrix

Definition at line 3 of file _zhematrix-calc.hpp.

4 {CPPL_VERBOSE_REPORT;
5 #ifdef CPPL_DEBUG
6  WARNING_REPORT;
7  std::cerr << "This function call has no effect since the matrix is symmetric." << std::endl;
8 #endif//CPPL_DEBUG
9 
10  return mat;
11 }
_zgematrix i ( const _zhematrix mat)
inline

return its inverse matrix

Definition at line 15 of file _zhematrix-calc.hpp.

References _(), zgematrix::identity(), zhematrix::n, and zhematrix::zhesv().

16 {CPPL_VERBOSE_REPORT;
17  zhematrix mat_cp(mat);
18  zgematrix mat_inv(mat_cp.n,mat_cp.n);
19  mat_inv.identity();
20  mat_cp.zhesv(mat_inv);
21 
22  return _(mat_inv);
23 }
Complex Double-precision General Dence Matrix Class.
Definition: zgematrix.hpp:3
Complex Double-precision Hermitian Matrix Class [l-type (UPLO=l) Strage].
Definition: zhematrix.hpp:4
_dcovector _(dcovector &vec)