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 <<
") + ("
10 << matB.m <<
"x" << matB.n <<
")." << std::endl;
17 for(CPPL_INT c=0; c<matB.vol; c++){
18 newmat(matB.indx[c],matB.jndx[c]) += matB.
array[c];
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];
53 std::cerr <<
"These two matrises can not make a product." << std::endl
54 <<
"Your input was (" << matA.
n <<
"x" << matA.
n <<
") * (" << matB.m <<
"x" << matB.n <<
")." << std::endl;
62 for(CPPL_INT c=0; c<matB.vol; c++){
63 for(CPPL_INT
i=0;
i<matA.
n;
i++){
64 newmat(
i,matB.jndx[c]) += matA(
i,matB.indx[c])*matB.
array[c];
_zgematrix operator*(const zhematrix &matA, const zssmatrix &matB)
_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
_zgematrix operator+(const zhematrix &matA, const zssmatrix &matB)
(DO NOT USE) Smart-temporary Complex Double-precision General Dence Matrix Class
comple * array
1D array to store matrix data
Complex Double-precision Hermitian Matrix Class [l-type (UPLO=l) Strage].
_zgematrix operator-(const zhematrix &matA, const zssmatrix &matB)
_dcovector _(dcovector &vec)