20 std::cerr <<
"These two matrises can not make a summation." << std::endl
21 <<
"Your input was (" <<
n <<
"x" <<
n <<
") += (" << mat.
n <<
"x" << mat.
n <<
")." << std::endl;
26 const std::vector<zcomponent>::const_iterator mat_data_end =mat.
data.end();
27 for(std::vector<zcomponent>::const_iterator it=mat.
data.begin(); it!=mat_data_end; it++){
28 (*this)(it->i,it->j) +=it->v;
42 std::cerr <<
"These two matrises can not make a sutraction." << std::endl
43 <<
"Your input was (" <<
n <<
"x" <<
n <<
") -= (" << mat.
n <<
"x" << mat.
n <<
")." << std::endl;
48 const std::vector<zcomponent>::const_iterator mat_data_end =mat.
data.end();
49 for(std::vector<zcomponent>::const_iterator it=mat.
data.begin(); it!=mat_data_end; it++){
50 (*this)(it->i,it->j) -=it->v;
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;
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;
std::vector< zcomponent > data
matrix data
zhsmatrix & operator+=(const zhsmatrix &)
zhsmatrix & operator=(const zhsmatrix &)
zhsmatrix & operator-=(const zhsmatrix &)
_zhsmatrix operator-(const zhsmatrix &matA, const _zhsmatrix &matB)
CPPL_INT n
matrix column size
CPPL_INT n
matrix column size
std::vector< zcomponent > data
matrix data
_zhsmatrix operator+(const zhsmatrix &matA, const _zhsmatrix &matB)
Complex Double-precision Hermitian Sparse Matrix Class.
void shallow_copy(const _zhsmatrix &)
_dcovector _(dcovector &vec)
(DO NOT USE) Smart-temporary Complex Double-precision Hermitian Sparse Matrix Class ...