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];
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];
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];
_zgematrix operator-(const zgematrix &matA, const zhematrix &matB)
_zgematrix operator*(const zgematrix &matA, const zhematrix &matB)
_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
(DO NOT USE) Smart-temporary Complex Double-precision General Dence Matrix Class
comple * array
1D array to store matrix data
_zgematrix operator+(const zgematrix &matA, const zhematrix &matB)
CPPL_INT m
matrix row size
Complex Double-precision Hermitian Matrix Class [l-type (UPLO=l) Strage].
_dcovector _(dcovector &vec)