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

Go to the source code of this file.

Functions

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

Function Documentation

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

dgrmatrix*double operator

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

References dgrmatrix::a.

32 {CPPL_VERBOSE_REPORT;
33  dgrmatrix newmat =mat;
34 
35  const std::vector<double>::iterator newmat_a_end =newmat.a.end();
36  for(std::vector<double>::iterator it=newmat.a.begin(); it!=newmat_a_end; it++){
37  (*it) *=d;
38  }
39 
40  return newmat;
41 }
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
dgrmatrix operator/ ( const dgrmatrix mat,
const double &  d 
)
inline

dgrmatrix/double operator

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

References dgrmatrix::a.

46 {CPPL_VERBOSE_REPORT;
47  dgrmatrix newmat =mat;
48 
49  const std::vector<double>::iterator newmat_a_end =newmat.a.end();
50  for(std::vector<double>::iterator it=newmat.a.begin(); it!=newmat_a_end; it++){
51  (*it) /=d;
52  }
53 
54  return newmat;
55 }
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