Go to the source code of this file.
_zhematrix+zssmatrix operator
Definition at line 3 of file _zhematrix-zssmatrix.hpp.
References _(), zgematrix::array, _zhematrix::destroy(), and _zhematrix::n.
6 if(matA.
n!=matB.m || matA.
n!=matB.n){
8 std::cerr <<
"These two matrises can not make a summation." << std::endl
9 <<
"Your input was (" << matA.
n <<
"x" << matA.
n <<
") + (" << matB.m <<
"x" << matB.n <<
")." << std::endl;
16 for(CPPL_INT c=0; c<matB.vol; c++){
17 newmat(matB.indx[c],matB.jndx[c]) += matB.
array[c];
CPPL_INT n
matrix column size
Complex Double-precision General Dence Matrix Class.
comple * array
1D array to store matrix data
_dcovector _(dcovector &vec)
_zhematrix-zssmatrix operator
Definition at line 26 of file _zhematrix-zssmatrix.hpp.
References _(), zgematrix::array, _zhematrix::destroy(), and _zhematrix::n.
29 if(matA.
n!=matB.m || matA.
n!=matB.n){
31 std::cerr <<
"These two matrises can not make a subtraction." << std::endl
32 <<
"Your input was (" << matA.
n <<
"x" << matA.
n <<
") - (" << matB.m <<
"x" << matB.n <<
")." << std::endl;
39 for(CPPL_INT c=0; c<matB.vol; c++){
40 newmat(matB.indx[c],matB.jndx[c]) -= matB.
array[c];
CPPL_INT n
matrix column size
Complex Double-precision General Dence Matrix Class.
comple * array
1D array to store matrix data
_dcovector _(dcovector &vec)
_zhematrix*zssmatrix operator
Definition at line 49 of file _zhematrix-zssmatrix.hpp.
References _(), _zhematrix::array, _zhematrix::destroy(), i(), _zhematrix::n, and zgematrix::zero().
54 std::cerr <<
"These two matrises can not make a product." << std::endl
55 <<
"Your input was (" << matA.
n <<
"x" << matA.
n <<
") * (" << matB.m <<
"x" << matB.n <<
")." << std::endl;
63 for(CPPL_INT c=0; c<matB.vol; c++){
64 for(CPPL_INT
i=0;
i<matA.
n;
i++){
65 newmat(
i,matB.jndx[c]) += matA(
i,matB.indx[c])*matB.
array[c];
CPPL_INT n
matrix column size
_dgematrix i(const _dgbmatrix &mat)
Complex Double-precision General Dence Matrix Class.
comple * array
1D array to store matrix data
_dcovector _(dcovector &vec)