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 mn =matA.
m*matA.
n;
15 for(CPPL_INT
i=0;
i<mn;
i++){
28 if(matA.
n!=matB.
n || matA.
m!=matB.
m){
30 std::cerr <<
"These two matrises can not make a subtraction." << std::endl
31 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") - (" << matB.
m <<
"x" << matB.
n <<
")." << std::endl;
36 const CPPL_INT mn =matA.
m*matA.
n;
37 for(CPPL_INT
i=0;
i<mn;
i++){
52 std::cerr <<
"These two matrises can not make a product." << std::endl
53 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") * (" << matB.
m <<
"x" << matB.
n <<
")." << std::endl;
64 dgemm_( &transa, &transb, &matA.
m, &matB.
n, &matA.
n, &alpha, matA.
array, &matA.
m, matB.
array, &matB.
m, &beta, newmat.
array, &matA.
m );
double * array
1D array to store matrix data
_dgematrix i(const _dgbmatrix &mat)
Real Double-precision General Dence Matrix Class.
_dgematrix operator*(const _dgematrix &matA, const _dgematrix &matB)
_dgematrix operator-(const _dgematrix &matA, const _dgematrix &matB)
CPPL_INT m
matrix row size
double * array
1D array to store matrix data
(DO NOT USE) Smart-temporary Real Double-precision General Dence Matrix Class
CPPL_INT n
matrix column size
_dgematrix operator+(const _dgematrix &matA, const _dgematrix &matB)
_dcovector _(dcovector &vec)