My Project
double-dssmatrix.hpp
1 //=============================================================================
3 inline _dssmatrix operator*(const double& d, const dssmatrix& mat)
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] operator*(const double&, const dssmatrix&)"
7  << std::endl;
8 #endif//CPPL_VERBOSE
9 
10  dssmatrix newmat(mat.M, mat.N, mat.CAP);
11  for(long c=0; c<mat.VOL; c++){
12  newmat.fput(mat.Indx[c], mat.Jndx[c], d*mat.Array[c]);
13  }
14  return _(newmat);
15 }
(DO NOT USE) Smart-temporary Real Double-precision Sparse Matrix Class
Definition: _dssmatrix.hpp:3
friend _drovector operator*(const drovector &, const dgematrix &)
Definition: drovector-dgematrix.hpp:3
Real Double-precision Sparse Matrix Class.
Definition: dssmatrix.hpp:3
void fput(const long &, const long &, const double &)
Definition: dssmatrix-io.hpp:75