My Project
complex-zgbmatrix.hpp
1 //=============================================================================
3 inline _zgbmatrix operator*(const std::complex<double>& d, const zgbmatrix& mat)
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] operator*(const std::complex<double>&, const zgbmatrix&)"
7  << std::endl;
8 #endif//CPPL_VERBOSE
9 
10  zgbmatrix newmat(mat.M, mat.N, mat.KL, mat.KU);
11  for(long i=0; i<(newmat.KL+newmat.KU+1)*newmat.N; i++){
12  newmat.Array[i] =d*mat.Array[i];
13  }
14 
15  return _(newmat);
16 }
Complex Double-precision General Band Matrix Class.
Definition: zgbmatrix.hpp:3
friend _zrovector operator*(const zrovector &, const zgematrix &)
Definition: zrovector-zgematrix.hpp:3
(DO NOT USE) Smart-temporary Complex Double-precision General Band Matrix Class
Definition: _zgbmatrix.hpp:3