CPPLapack
 All Classes Files Functions Variables Friends Pages
_zhematrix-complex.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! _zhematrix*comple operator */
3 inline _zgematrix operator*(const _zhematrix& mat, const comple& d)
4 {CPPL_VERBOSE_REPORT;
5  zgematrix newmat =mat.to_zgematrix();
6 
7  CPPL_INT size =mat.n*mat.n;
8  CPPL_INT inc =1;
9  zscal_(&size, &d, newmat.array, &inc);
10 
11  return _(newmat);
12 }
13 
14 //=============================================================================
15 /*! zhematrix/comple operator */
16 inline _zgematrix operator/(const _zhematrix& mat, const comple& d)
17 {CPPL_VERBOSE_REPORT;
18  zgematrix newmat =mat.to_zgematrix();
19 
20  CPPL_INT size =mat.n*mat.n;
21  comple dinv =1./d;
22  CPPL_INT inc =1;
23  zscal_(&size, &dinv, newmat.array, &inc);
24 
25  return _(newmat);
26 }
(DO NOT USE) Smart-temporary Complex Double-precision Hermitian Matrix Class
Definition: _zhematrix.hpp:3
CPPL_INT n
matrix column size
Definition: _zhematrix.hpp:11
_zgematrix operator*(const _zhematrix &mat, const comple &d)
Complex Double-precision General Dence Matrix Class.
Definition: zgematrix.hpp:3
_zgematrix operator/(const _zhematrix &mat, const comple &d)
comple * array
1D array to store matrix data
Definition: zgematrix.hpp:11
(DO NOT USE) Smart-temporary Complex Double-precision General Dence Matrix Class
Definition: _zgematrix.hpp:3
_zgematrix to_zgematrix() const
_dcovector _(dcovector &vec)