8 std::cerr <<
"These matrix and vector can not make a product." << std::endl
9 <<
"Your input was (" << mat.
n <<
"x" << mat.
n <<
") * (" << vec.
l <<
")." << std::endl;
17 const std::vector<dcomponent>::iterator mat_data_end =mat.
data.end();
18 for(std::vector<dcomponent>::iterator it=mat.
data.begin(); it!=mat_data_end; it++){
19 newvec(it->i) +=it->v*vec(it->j);
21 newvec(it->j) +=it->v*vec(it->i);
std::vector< dcomponent > data
matrix data
_dcovector operator*(const _dssmatrix &mat, const _dcovector &vec)
(DO NOT USE) Smart-temporary Real Double-precision Symmetric Sparse Matrix Class
CPPL_INT n
matrix column size
Real Double-precision Column Vector Class.
(DO NOT USE) Smart-temporary Real Double-precision Column Vector Class
_dcovector _(dcovector &vec)