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

Go to the source code of this file.

Functions

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

Function Documentation

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

comple*_zhematrix operator

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

References _(), zgematrix::array, _zhematrix::destroy(), _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  mat.destroy();
12  return _(newmat);
13 }
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
void destroy() const
_zgematrix to_zgematrix() const
_dcovector _(dcovector &vec)