8 std::cerr <<
"These vector and matrix can not make a product." << std::endl
9 <<
"Your input was (" << vec.
l <<
") * (" << mat.
n <<
"x" << mat.
n <<
")." << 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->j) += vec(it->i)*it->v;
21 newvec(it->i) += vec(it->j)*it->v;
std::vector< dcomponent > data
matrix data
_drovector operator*(const drovector &vec, const _dssmatrix &mat)
(DO NOT USE) Smart-temporary Real Double-precision Symmetric Sparse Matrix Class
Real Double-precision Row Vector Class.
(DO NOT USE) Smart-temporary Real Double-precision Row Vector Class
CPPL_INT n
matrix column size
_dcovector _(dcovector &vec)