My Project
double-zgbmatrix.hpp
1 //=============================================================================
3 inline _zgbmatrix operator*(const double& d, const zgbmatrix& mat)
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] operator*(const 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  return _(newmat);
15 }
Complex Double-precision General Band Matrix Class.
Definition: zgbmatrix.hpp:3
(DO NOT USE) Smart-temporary Complex Double-precision General Band Matrix Class
Definition: _zgbmatrix.hpp:3
friend _drovector operator*(const drovector &, const dgematrix &)
Definition: drovector-dgematrix.hpp:3
long const & kl
lower band width (readable)
Definition: zgbmatrix.hpp:18
long const & n
matrix column size (readable)
Definition: zgbmatrix.hpp:17
long const & ku
upper band width (readable)
Definition: zgbmatrix.hpp:19