Go to the source code of this file.
_zhsmatrix*zcovector operator
Definition at line 3 of file _zhsmatrix-zcovector.hpp.
References _(), conj(), _zhsmatrix::data, _zhsmatrix::destroy(), zcovector::l, _zhsmatrix::n, and zcovector::zero().
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<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->i) +=it->v*vec(it->j);
21 newvec(it->j) +=
std::conj(it->v)*vec(it->i);
std::vector< zcomponent > data
matrix data
_zcovector conj(const _zcovector &vec)
CPPL_INT n
matrix column size
Complex Double-precision Column Vector Class.
_dcovector _(dcovector &vec)