Go to the source code of this file.
dgsmatrix*dcovector operator
Definition at line 3 of file dgsmatrix-dcovector.hpp.
References _(), dgsmatrix::data, dcovector::l, dgsmatrix::m, dgsmatrix::n, and dcovector::zero().
8 std::cerr <<
"These matrix and vector can not make a product." << std::endl
9 <<
"Your input was (" << mat.
m <<
"x" << mat.
n <<
") * (" << vec.
l <<
")." << std::endl;
17 const std::vector<dcomponent>::const_iterator mat_data_end =mat.
data.end();
18 for(std::vector<dcomponent>::const_iterator it=mat.
data.begin(); it!=mat_data_end; it++){
19 newvec(it->i) += it->v*vec(it->j);
std::vector< dcomponent > data
matrix data
CPPL_INT n
matrix column size
Real Double-precision Column Vector Class.
_dcovector _(dcovector &vec)
CPPL_INT m
matrix row size