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];
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];
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];
(DO NOT USE) Smart-temporary Complex Double-precision Hermitian Matrix Class
CPPL_INT n
matrix column size
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
_zgematrix operator-(const zgematrix &matA, const _zhematrix &matB)
Complex Double-precision General Dence Matrix Class.
(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
_zgematrix operator*(const zgematrix &matA, const _zhematrix &matB)
CPPL_INT const & m
matrix row and size
_dcovector _(dcovector &vec)