22 std::cerr <<
"These two matrises can not make a summation." << std::endl
23 <<
"Your input was (" <<
n <<
"x" <<
n <<
") += (" << mat.
n <<
"x" << mat.
n <<
")." << std::endl;
28 const std::vector<dcomponent>::const_iterator mat_data_end =mat.
data.end();
29 for(std::vector<dcomponent>::const_iterator it=mat.
data.begin(); it!=mat_data_end; it++){
30 (*this)(it->i,it->j) +=it->v;
43 std::cerr <<
"These two matrises can not make a sutraction." << std::endl
44 <<
"Your input was (" <<
n <<
"x" <<
n <<
") -= (" << mat.
n <<
"x" << mat.
n <<
")." << std::endl;
49 const std::vector<dcomponent>::const_iterator mat_data_end =mat.
data.end();
50 for(std::vector<dcomponent>::const_iterator it=mat.
data.begin(); it!=mat_data_end; it++){
51 (*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<dcomponent>::const_iterator matB_data_end =matB.
data.end();
77 for(std::vector<dcomponent>::const_iterator it=matB.
data.begin(); it!=matB_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<dcomponent>::const_iterator matB_data_end =matB.
data.end();
100 for(std::vector<dcomponent>::const_iterator it=matB.
data.begin(); it!=matB_data_end; it++){
101 newmat(it->i,it->j) -=it->v;
std::vector< dcomponent > data
matrix data
void copy(const dssmatrix &)
_dssmatrix operator-(const dssmatrix &matA, const dssmatrix &matB)
(DO NOT USE) Smart-temporary Real Double-precision Symmetric Sparse Matrix Class
dssmatrix & operator+=(const dssmatrix &)
_dssmatrix operator+(const dssmatrix &matA, const dssmatrix &matB)
dssmatrix & operator=(const dssmatrix &)
dssmatrix & operator-=(const dssmatrix &)
Real Double-precision Symmetric Sparse Matrix Class.
CPPL_INT n
matrix column size
_dcovector _(dcovector &vec)