6 if(matA.
n!=matB.
n || matA.
m!=matB.
m){
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;
14 const CPPL_INT size =matA.
m*matA.
n;
15 for(CPPL_INT
i=0;
i<size;
i++){
27 if(matA.
n!=matB.
n || matA.
m!=matB.
m){
29 std::cerr <<
"These two matrises can not make a subtraction." << std::endl
30 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") - (" << matB.
m <<
"x" << matB.
n <<
")." << std::endl;
35 const CPPL_INT size =matA.
m*matA.
n;
36 for(CPPL_INT
i=0;
i<size;
i++){
50 std::cerr <<
"These two matrises can not make a product." << std::endl
51 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") * (" << matB.
m <<
"x" << matB.
n <<
")." << std::endl;
59 comple alpha =comple(1.,0.);
60 comple beta =comple(0.,0.);
62 zgemm_( &transa, &transb, &matA.
m, &matB.
n, &matA.
n, &alpha, matA.
array, &matA.
m, matB.
array, &matB.
m, &beta, newmat.
array, &matA.
m );
CPPL_INT m
matrix row 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
_zgematrix operator-(const _zgematrix &matA, const zgematrix &matB)
(DO NOT USE) Smart-temporary Complex Double-precision General Dence Matrix Class
_zgematrix operator*(const _zgematrix &matA, const zgematrix &matB)
comple * array
1D array to store matrix data
CPPL_INT m
matrix row size
_zgematrix operator+(const _zgematrix &matA, const zgematrix &matB)
_dcovector _(dcovector &vec)
CPPL_INT n
matrix column size