My Project
_zhematrix-complex.hpp
1 //=============================================================================
3 inline _zgematrix operator*(const _zhematrix& mat, const std::complex<double>& d)
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] operator*(const _zhematrix&, const std::complex<double>&)"
7  << std::endl;
8 #endif//CPPL_VERBOSE
9 
10  zgematrix newmat(mat);
11  zscal_(mat.N*mat.N, d, newmat.array, 1);
12 
13  return _(newmat);
14 }
15 
16 //=============================================================================
18 inline _zgematrix operator/(const _zhematrix& mat, const std::complex<double>& d)
19 {
20 #ifdef CPPL_VERBOSE
21  std::cerr << "# [MARK] operator/(const _zhematrix&, const std::complex<double>&)"
22  << std::endl;
23 #endif//CPPL_VERBOSE
24 
25  zgematrix newmat(mat);
26  zscal_(mat.N*mat.N, 1./d, newmat.array, 1);
27 
28  return _(newmat);
29 }
(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
Complex Double-precision General Dence Matrix Class.
Definition: zgematrix.hpp:3
(DO NOT USE) Smart-temporary Complex Double-precision General Dence Matrix Class
Definition: _zgematrix.hpp:3
friend _zrovector operator*(const zrovector &, const zgematrix &)
Definition: zrovector-zgematrix.hpp:3
long N
matrix column or row size
Definition: _zhematrix.hpp:7