My Project
double-zssmatrix.hpp
1 //=============================================================================
3 inline _zssmatrix operator*(const double& d, const zssmatrix& mat)
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] operator*(const double&, const zssmatrix&)"
7  << std::endl;
8 #endif//CPPL_VERBOSE
9 
10  zssmatrix 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 Complex Double-precision Sparse Matrix Class
Definition: _zssmatrix.hpp:3
friend _drovector operator*(const drovector &, const dgematrix &)
Definition: drovector-dgematrix.hpp:3
Complex Double-precision Sparse Matrix Class.
Definition: zssmatrix.hpp:3