Go to the source code of this file.
zhsmatrix+zhsmatrix operator
Definition at line 63 of file zhsmatrix-zhsmatrix.hpp.
References _(), zhsmatrix::data, and zhsmatrix::n.
68 std::cerr <<
"These two matrises can not make a summation." << std::endl
69 <<
"Your input was (" << matA.
n <<
"x" << matA.
n <<
") + (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
76 const std::vector<zcomponent>::const_iterator matB_data_end =matB.
data.end();
77 for(std::vector<zcomponent>::const_iterator it=matB.
data.begin(); it!=matB_data_end; it++){
78 newmat(it->i,it->j) +=it->v;
CPPL_INT n
matrix column size
std::vector< zcomponent > data
matrix data
Complex Double-precision Hermitian Sparse Matrix Class.
_dcovector _(dcovector &vec)
zhsmatrix-zhsmatrix operator
Definition at line 86 of file zhsmatrix-zhsmatrix.hpp.
References _(), zhsmatrix::data, and zhsmatrix::n.
91 std::cerr <<
"These two matrises can not make a subtraction." << std::endl
92 <<
"Your input was (" << matA.
n <<
"x" << matA.
n <<
") - (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
99 const std::vector<zcomponent>::const_iterator matB_data_end =matB.
data.end();
100 for(std::vector<zcomponent>::const_iterator it=matB.
data.begin(); it!=matB_data_end; it++){
101 newmat(it->i,it->j) -= it->v;
CPPL_INT n
matrix column size
std::vector< zcomponent > data
matrix data
Complex Double-precision Hermitian Sparse Matrix Class.
_dcovector _(dcovector &vec)