Go to the source code of this file.
zgematrix+zhematrix operator
Definition at line 3 of file zgematrix-zssmatrix.hpp.
References _(), zhematrix::array, zgematrix::m, zhematrix::m, zgematrix::n, and zhematrix::n.
6 if(matA.
m!=matB.
m || matA.
n!=matB.
n){
8 std::cerr <<
"These two matrises can not make a summation." << std::endl
9 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") + (" << matB.
m <<
"x" << matB.
n <<
")." << std::endl;
15 for(CPPL_INT c=0; c<matB.vol; c++){
16 newmat(matB.indx[c],matB.jndx[c]) += matB.
array[c];
CPPL_INT n
matrix column size
CPPL_INT const & m
matrix row size
Complex Double-precision General Dence Matrix Class.
CPPL_INT n
matrix column size
comple * array
1D array to store matrix data
CPPL_INT m
matrix row size
_dcovector _(dcovector &vec)
zgematrix-zhematrix operator
Definition at line 24 of file zgematrix-zssmatrix.hpp.
References _(), zhematrix::array, zgematrix::m, zhematrix::m, zgematrix::n, and zhematrix::n.
27 if(matA.
m!=matB.
m || matA.
n!=matB.
n){
29 std::cerr <<
"These two matrises can not make a subtraction." << std::endl
30 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") - (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
36 for(CPPL_INT c=0; c<matB.vol; c++){
37 newmat(matB.indx[c],matB.jndx[c]) -= matB.
array[c];
CPPL_INT n
matrix column size
CPPL_INT const & m
matrix row size
Complex Double-precision General Dence Matrix Class.
CPPL_INT n
matrix column size
comple * array
1D array to store matrix data
CPPL_INT m
matrix row size
_dcovector _(dcovector &vec)
zgematrix*zhematrix operator
Definition at line 45 of file zgematrix-zssmatrix.hpp.
References _(), zhematrix::array, i(), zgematrix::m, zhematrix::m, zgematrix::n, zhematrix::n, and zgematrix::zero().
50 std::cerr <<
"These two matrises can not make a product." << std::endl
51 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") * (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
59 for(CPPL_INT c=0; c<matB.vol; c++){
60 for(CPPL_INT
i=0;
i<matA.
m;
i++){
61 newmat(
i,matB.jndx[c]) += matA(
i,matB.indx[c])*matB.
array[c];
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
CPPL_INT const & m
matrix row size
Complex Double-precision General Dence Matrix Class.
CPPL_INT n
matrix column size
comple * array
1D array to store matrix data
CPPL_INT m
matrix row size
_dcovector _(dcovector &vec)