Go to the source code of this file.
zhsmatrix+_zhsmatrix operator
Definition at line 63 of file zhsmatrix-_zhsmatrix.hpp.
References _(), zhsmatrix::data, zhsmatrix::n, 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 matA_data_end =matA.
data.end();
77 for(std::vector<zcomponent>::const_iterator it=matA.
data.begin(); it!=matA_data_end; it++){
78 newmat(it->i,it->j) +=it->v;
CPPL_INT n
matrix column size
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, zhsmatrix::n, 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 matA_data_end =matA.
data.end();
100 for(std::vector<zcomponent>::const_iterator it=matA.
data.begin(); it!=matA_data_end; it++){
101 newmat(it->i,it->j) +=it->v;
CPPL_INT n
matrix column size
CPPL_INT n
matrix column size
std::vector< zcomponent > data
matrix data
Complex Double-precision Hermitian Sparse Matrix Class.
_dcovector _(dcovector &vec)