CPPLapack
 All Classes Files Functions Variables Friends Pages
double-dgrmatrix.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! double*dgrmatrix operator */
3 inline dgrmatrix operator*(const double& d, const dgrmatrix& mat)
4 {CPPL_VERBOSE_REPORT;
5  dgrmatrix newmat =mat;
6 
7  const size_t newmat_a_size =newmat.a.size();
8  for(size_t k=0; k<newmat_a_size; k++){
9  newmat.a[k] *= d;
10  }
11 
12  return newmat;
13 }
std::vector< double > a
matrix component values
Definition: dgrmatrix.hpp:11
dgrmatrix operator*(const double &d, const dgrmatrix &mat)
Real Double-precision General Compressed Sparse Row (CSR) Matrix Class.
Definition: dgrmatrix.hpp:3