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  mat.complete();
6  zgematrix newmat(mat.n, mat.n);
7 
8  const CPPL_INT size =mat.n*mat.n;
9  for(CPPL_INT i=0; i<size; i++){
10  newmat.array[i] =mat.array[i]*d;
11  }
12 
13  return _(newmat);
14 }
15 
16 //=============================================================================
17 /*! zhematrix/comple operator */
18 inline _zgematrix operator/(const zhematrix& mat, const comple& d)
19 {CPPL_VERBOSE_REPORT;
20  mat.complete();
21  zgematrix newmat(mat.n, mat.n);
22 
23  const CPPL_INT size =mat.n*mat.n;
24  for(CPPL_INT i=0; i<size; i++){
25  newmat.array[i] =mat.array[i]/d;
26  }
27 
28  return _(newmat);
29 }
_dgematrix i(const _dgbmatrix &mat)
_zgematrix operator/(const zhematrix &mat, const comple &d)
void complete() const
Complex Double-precision General Dence Matrix Class.
Definition: zgematrix.hpp:3
CPPL_INT n
matrix column size
Definition: zhematrix.hpp:11
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
comple * array
1D array to store matrix data
Definition: zhematrix.hpp:12
_zgematrix operator*(const zhematrix &mat, const comple &d)
Complex Double-precision Hermitian Matrix Class [l-type (UPLO=l) Strage].
Definition: zhematrix.hpp:4
_dcovector _(dcovector &vec)