VERB_code_2.3
_dssmatrix-double.hpp
1 //=============================================================================
3 inline _dssmatrix operator*(const _dssmatrix& mat, const double& d)
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] operator*(const _dssmatrix&, const double&)"
7  << std::endl;
8 #endif//CPPL_VERBOSE
9 
10  dscal_(mat.VOL, d, mat.Array, 1);
11  return mat;
12 }
13 
14 //=============================================================================
16 inline _dssmatrix operator/(const _dssmatrix& mat, const double& d)
17 {
18 #ifdef CPPL_VERBOSE
19  std::cerr << "# [MARK] operator/(const _dssmatrix&, const double&)"
20  << std::endl;
21 #endif//CPPL_VERBOSE
22 
23  dscal_(mat.VOL, 1./d, mat.Array, 1);
24  return mat;
25 }
(DO NOT USE) Smart-temporary Real Double-precision Sparse Matrix Class
Definition: _dssmatrix.hpp:3
friend _drovector operator/(const drovector &, const double &)
Definition: drovector-double.hpp:48
friend _drovector operator*(const drovector &, const dgematrix &)
Definition: drovector-dgematrix.hpp:3
double * Array
1D array to store non-zero matrix data
Definition: _dssmatrix.hpp:11
long VOL
the number of non-zero components
Definition: _dssmatrix.hpp:10