Go to the source code of this file.
zhematrix+_zssmatrix operator
Definition at line 3 of file zhematrix-_zssmatrix.hpp.
References _(), zgematrix::array, 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];
Complex Double-precision General Dence Matrix Class.
CPPL_INT n
matrix column size
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, 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];
Complex Double-precision General Dence Matrix Class.
CPPL_INT n
matrix column size
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, 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];
_dgematrix i(const _dgbmatrix &mat)
Complex Double-precision General Dence Matrix Class.
CPPL_INT n
matrix column size
comple * array
1D array to store matrix data
_dcovector _(dcovector &vec)