VERB_code_2.3
_zhematrix-double.hpp
1 //=============================================================================
3 inline _zhematrix operator*(const _zhematrix& mat, const double& d)
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] operator*(const _zhematrix&, const double&)"
7  << std::endl;
8 #endif//CPPL_VERBOSE
9 
10  zdscal_(mat.N*mat.N, d, mat.Array, 1);
11  return mat;
12 }
13 
14 //=============================================================================
16 inline _zhematrix operator/(const _zhematrix& mat, const double& d)
17 {
18 #ifdef CPPL_VERBOSE
19  std::cerr << "# [MARK] operator/(const _zhematrix&, const double&)"
20  << std::endl;
21 #endif//CPPL_VERBOSE
22 
23  zdscal_(mat.N*mat.N, 1./d, mat.Array, 1);
24  return mat;
25 }
(DO NOT USE) Smart-temporary Complex Double-precision Hermitian Matrix Class
Definition: _zhematrix.hpp:3
friend _zrovector operator/(const zrovector &, const double &)
Definition: zrovector-double.hpp:48
std::complex< double > * Array
1D Array to store matrix data
Definition: _zhematrix.hpp:8
friend _zrovector operator*(const zrovector &, const zgematrix &)
Definition: zrovector-zgematrix.hpp:3
long N
matrix column or row size
Definition: _zhematrix.hpp:7