Go to the source code of this file.
zgematrix+_zhematrix operator
Definition at line 3 of file zgematrix-_zssmatrix.hpp.
References _(), _zhematrix::array, _zhematrix::destroy(), 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 n
matrix column size
Complex Double-precision General Dence Matrix Class.
comple * array
1D array to store matrix data
CPPL_INT m
matrix row size
CPPL_INT const & m
matrix row and size
_dcovector _(dcovector &vec)
zgematrix-_zhematrix operator
Definition at line 25 of file zgematrix-_zssmatrix.hpp.
References _(), _zhematrix::array, _zhematrix::destroy(), zgematrix::m, _zhematrix::m, zgematrix::n, and _zhematrix::n.
28 if(matA.
m!=matB.
m || matA.
n!=matB.
n){
30 std::cerr <<
"These two matrises can not make a subtraction." << std::endl
31 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") - (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
37 for(CPPL_INT c=0; c<matB.vol; c++){
38 newmat(matB.indx[c],matB.jndx[c]) -= matB.
array[c];
CPPL_INT n
matrix column size
CPPL_INT n
matrix column size
Complex Double-precision General Dence Matrix Class.
comple * array
1D array to store matrix data
CPPL_INT m
matrix row size
CPPL_INT const & m
matrix row and size
_dcovector _(dcovector &vec)
zgematrix*_zhematrix operator
Definition at line 47 of file zgematrix-_zssmatrix.hpp.
References _(), _zhematrix::array, _zhematrix::destroy(), i(), zgematrix::m, _zhematrix::m, zgematrix::n, _zhematrix::n, and zgematrix::zero().
52 std::cerr <<
"These two matrises can not make a product." << std::endl
53 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") * (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
61 for(CPPL_INT c=0; c<matB.vol; c++){
62 for(CPPL_INT
i=0;
i<matA.
m;
i++){
63 newmat(
i,matB.jndx[c]) += matA(
i,matB.indx[c])*matB.
array[c];
CPPL_INT n
matrix column size
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
Complex Double-precision General Dence Matrix Class.
comple * array
1D array to store matrix data
CPPL_INT m
matrix row size
CPPL_INT const & m
matrix row and size
_dcovector _(dcovector &vec)