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];
30 if(matA.
n!=matB.m || matA.
n!=matB.n){
32 std::cerr <<
"These two matrises can not make a subtraction." << std::endl
33 <<
"Your input was (" << matA.
n <<
"x" << matA.
n <<
") - (" << matB.m <<
"x" << matB.n <<
")." << std::endl;
40 for(CPPL_INT c=0; c<matB.vol; c++){
41 newmat(matB.indx[c],matB.jndx[c]) -= matB.
array[c];
56 std::cerr <<
"These two matrises can not make a product." << std::endl
57 <<
"Your input was (" << matA.
n <<
"x" << matA.
n <<
") * (" << matB.m <<
"x" << matB.n <<
")." << std::endl;
65 for(CPPL_INT c=0; c<matB.vol; c++){
66 for(CPPL_INT
i=0;
i<matA.
n;
i++){
67 newmat(
i,matB.jndx[c]) += matA(
i,matB.indx[c])*matB.
array[c];
(DO NOT USE) Smart-temporary Complex Double-precision Hermitian Matrix Class
CPPL_INT n
matrix column size
_dgematrix i(const _dgbmatrix &mat)
_zgematrix operator-(const _zhematrix &matA, const _zssmatrix &matB)
Complex Double-precision General Dence Matrix Class.
comple * array
1D array to store matrix data
(DO NOT USE) Smart-temporary Complex Double-precision General Dence Matrix Class
comple * array
1D array to store matrix data
_zgematrix operator+(const _zhematrix &matA, const _zssmatrix &matB)
_zgematrix operator*(const _zhematrix &matA, const _zssmatrix &matB)
_dcovector _(dcovector &vec)