CPPLapack
 All Classes Files Functions Variables Friends Pages
Functions
double-dgrmatrix.hpp File Reference

Go to the source code of this file.

Functions

dgrmatrix operator* (const double &d, const dgrmatrix &mat)
 

Function Documentation

dgrmatrix operator* ( const double &  d,
const dgrmatrix mat 
)
inline

double*dgrmatrix operator

Definition at line 3 of file double-dgrmatrix.hpp.

References dgrmatrix::a.

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
Real Double-precision General Compressed Sparse Row (CSR) Matrix Class.
Definition: dgrmatrix.hpp:3