VERB_code_2.3
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  mat.complete();
11  zgematrix newmat(mat.N, mat.N);
12  for(long i=0; i<mat.N*mat.N; i++){ newmat.array[i] =d*mat.Array[i]; }
13 
14  return _(newmat);
15 }
void complete() const
Definition: zhematrix-misc.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
friend _zrovector operator*(const zrovector &, const zgematrix &)
Definition: zrovector-zgematrix.hpp:3
Complex Double-precision Hermitian Matrix Class [L-type (UPLO=L) Strage].
Definition: zhematrix.hpp:4
std::complex< double > *const & array
1D array to store matrix data (readable)
Definition: zgematrix.hpp:16