My Project
double-dgbmatrix.hpp
1 //=============================================================================
3 inline _dgbmatrix operator*(const double& d, const dgbmatrix& mat)
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] operator*(const double&, const dgbmatrix&)"
7  << std::endl;
8 #endif//CPPL_VERBOSE
9 
10  dgbmatrix 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 }
Real Double-precision General Band Matrix Class.
Definition: dgbmatrix.hpp:3
friend _drovector operator*(const drovector &, const dgematrix &)
Definition: drovector-dgematrix.hpp:3
(DO NOT USE) Smart-temporary Real Double-precision General Band Matrix Class
Definition: _dgbmatrix.hpp:3