CPPLapack
 All Classes Files Functions Variables Friends Pages
_zhematrix-double.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! _zhematrix*double operator */
3 inline _zhematrix operator*(const _zhematrix& mat, const double& d)
4 {CPPL_VERBOSE_REPORT;
5  CPPL_INT size =mat.n*mat.n;
6  CPPL_INT inc =1;
7  zdscal_(&size, &d, mat.array, &inc);
8  return mat;
9 }
10 
11 //=============================================================================
12 /*! _zhematrix/double operator */
13 inline _zhematrix operator/(const _zhematrix& mat, const double& d)
14 {CPPL_VERBOSE_REPORT;
15  CPPL_INT size =mat.n*mat.n;
16  double dinv =1./d;
17  CPPL_INT inc =1;
18  zdscal_(&size, &dinv, mat.array, &inc);
19  return mat;
20 }
(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
_zhematrix operator*(const _zhematrix &mat, const double &d)
comple * array
1D array to store matrix data
Definition: _zhematrix.hpp:12
_zhematrix operator/(const _zhematrix &mat, const double &d)