CPPLapack
 All Classes Files Functions Variables Friends Pages
_zhematrix-calc.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! return transposed _zhematrix */
3 inline _zhematrix t(const _zhematrix& mat)
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 }
12 
13 //=============================================================================
14 /*! return its inverse matrix */
15 inline _zgematrix i(const _zhematrix& mat)
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 }
(DO NOT USE) Smart-temporary Complex Double-precision Hermitian Matrix Class
Definition: _zhematrix.hpp:3
zgematrix & identity()
CPPL_INT zhesv(zgematrix &)
_zgematrix i(const _zhematrix &mat)
Complex Double-precision General Dence Matrix Class.
Definition: zgematrix.hpp:3
CPPL_INT n
matrix column size
Definition: zhematrix.hpp:11
(DO NOT USE) Smart-temporary 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
_zhematrix t(const _zhematrix &mat)
_dcovector _(dcovector &vec)