8 std::cerr <<
"These vector and matrix can not make a product." << std::endl
9 <<
"Your input was (" << vec.
l <<
") * (" << mat.
m <<
"x" << mat.
n <<
")." << std::endl;
17 const std::vector<zcomponent>::const_iterator mat_data_end =mat.
data.end();
18 for(std::vector<zcomponent>::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)*
std::conj(it->v);
std::vector< zcomponent > data
matrix data
CPPL_INT const & m
matrix row size
_zcovector conj(const _zcovector &vec)
CPPL_INT n
matrix column size
Complex Double-precision Row Vector Class.
(DO NOT USE) Smart-temporary Complex Double-precision Row Vector Class
_zrovector operator*(const zrovector &vec, const _zhsmatrix &mat)
_dcovector _(dcovector &vec)
(DO NOT USE) Smart-temporary Complex Double-precision Hermitian Sparse Matrix Class ...