CPPLapack
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Friends
Pages
include
double-
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
}
dgrmatrix::a
std::vector< double > a
matrix component values
Definition:
dgrmatrix.hpp:11
operator*
dgrmatrix operator*(const double &d, const dgrmatrix &mat)
Definition:
double-dgrmatrix.hpp:3
dgrmatrix
Real Double-precision General Compressed Sparse Row (CSR) Matrix Class.
Definition:
dgrmatrix.hpp:3
Generated by
1.8.6