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

Go to the source code of this file.

Functions

_zgematrix operator* (const _zhematrix &mat, const comple &d)
 
_zgematrix operator/ (const _zhematrix &mat, const comple &d)
 

Function Documentation

_zgematrix operator* ( const _zhematrix mat,
const comple &  d 
)
inline

_zhematrix*comple operator

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

References _(), zgematrix::array, _zhematrix::n, and _zhematrix::to_zgematrix().

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 }
CPPL_INT n
matrix column size
Definition: _zhematrix.hpp:11
Complex Double-precision General Dence Matrix Class.
Definition: zgematrix.hpp:3
comple * array
1D array to store matrix data
Definition: zgematrix.hpp:11
_zgematrix to_zgematrix() const
_dcovector _(dcovector &vec)
_zgematrix operator/ ( const _zhematrix mat,
const comple &  d 
)
inline

zhematrix/comple operator

Definition at line 16 of file _zhematrix-complex.hpp.

References _(), zgematrix::array, _zhematrix::n, and _zhematrix::to_zgematrix().

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 }
CPPL_INT n
matrix column size
Definition: _zhematrix.hpp:11
Complex Double-precision General Dence Matrix Class.
Definition: zgematrix.hpp:3
comple * array
1D array to store matrix data
Definition: zgematrix.hpp:11
_zgematrix to_zgematrix() const
_dcovector _(dcovector &vec)