CPPLapack
 All Classes Files Functions Variables Friends Pages
_dsymatrix-cast.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! cast to _zhematrix */
4 {CPPL_VERBOSE_REPORT;
5  zhematrix newmat(n);
6 
7  for(CPPL_INT j=0; j<n; j++){
8  for(CPPL_INT i=j; i<n; i++){
9  newmat(i,j) =comple((*this)(i,j),0.0);
10  }
11  }
12 
13  destroy();
14  return _(newmat);
15 }
16 
17 ///////////////////////////////////////////////////////////////////////////////
18 ///////////////////////////////////////////////////////////////////////////////
19 ///////////////////////////////////////////////////////////////////////////////
20 
21 //=============================================================================
22 /*! convert to _dgematrix */
24 {CPPL_VERBOSE_REPORT;
25  dgematrix newmat(n,n);
26 
27  for(CPPL_INT i=0; i<n; i++){
28  for(CPPL_INT j=0; j<n; j++){
29  newmat(i,j) =(*this)(i,j);
30  }
31  }
32 
33  destroy();
34  return _(newmat);
35 }
friend _dsymatrix i(const _dsymatrix &)
(DO NOT USE) Smart-temporary Complex Double-precision Hermitian Matrix Class
Definition: _zhematrix.hpp:3
void destroy() const
Real Double-precision General Dence Matrix Class.
Definition: dgematrix.hpp:3
(DO NOT USE) Smart-temporary Real Double-precision General Dence Matrix Class
Definition: _dgematrix.hpp:3
_dgematrix to_dgematrix() const
Complex Double-precision Hermitian Matrix Class [l-type (UPLO=l) Strage].
Definition: zhematrix.hpp:4
_zhematrix to_zhematrix() const
CPPL_INT n
matrix column size
Definition: _dsymatrix.hpp:11
_dcovector _(dcovector &vec)