Go to the source code of this file.
dssmatrix+dssmatrix operator
Definition at line 63 of file dssmatrix-dssmatrix.hpp.
References _(), dssmatrix::data, and dssmatrix::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<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;
std::vector< dcomponent > data
matrix data
Real Double-precision Symmetric Sparse Matrix Class.
CPPL_INT n
matrix column size
_dcovector _(dcovector &vec)
dssmatrix-dssmatrix operator
Definition at line 86 of file dssmatrix-dssmatrix.hpp.
References _(), dssmatrix::data, and dssmatrix::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<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
Real Double-precision Symmetric Sparse Matrix Class.
CPPL_INT n
matrix column size
_dcovector _(dcovector &vec)