My Project
complex-_zhematrix.hpp
1 //=============================================================================
3 inline _zgematrix operator*(const std::complex<double>& d, const _zhematrix& mat)
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] operator*(const std::complex<double>&, const _zhematrix&)"
7  << std::endl;
8 #endif//CPPL_VERBOSE
9 
10  zgematrix newmat(mat);
11  zscal_(mat.N*mat.N, d, newmat.array, 1);
12 
13  mat.destroy();
14  return _(newmat);
15 }
(DO NOT USE) Smart-temporary Complex Double-precision Hermitian Matrix Class
Definition: _zhematrix.hpp:3
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
void destroy() const
Definition: _zhematrix-misc.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