6 if(matA.
n!=matB.
n || matA.
n!=matB.
m){
8 std::cerr <<
"These two matrises can not make a summation." << std::endl
9 <<
"Your input was (" << matA.
n <<
"x" << matA.
n <<
") + (" << matB.
m <<
"x" << matB.
n <<
")." << std::endl;
14 for(CPPL_INT
i=0;
i<matA.
n;
i++) {
15 for(CPPL_INT j=0; j<matA.
n; j++) {
16 matB(
i,j) += matA(
i,j);
29 if(matA.
n!=matB.
n || matA.
n!=matB.
m){
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;
37 for(CPPL_INT
i=0;
i<matA.
n;
i++) {
38 for(CPPL_INT j=0; j<matA.
n; j++) {
39 matB(
i,j) =matA(
i,j)-matB(
i,j);
54 std::cerr <<
"These two matrises can not make a product." << std::endl
55 <<
"Your input was (" << matA.
n <<
"x" << matA.
n <<
") * (" << matB.
m <<
"x" << matB.
n <<
")." << std::endl;
66 dsymm_( &side, &uplo, &matA.
n, &matB.
n, &alpha, matA.
array, &matA.
n, matB.
array, &matB.
m, &beta, newmat.
array, &newmat.
m );
CPPL_INT m
matrix row size
double * array
1D array to store matrix data
_dgematrix i(const _dgbmatrix &mat)
Real Double-precision General Dence Matrix Class.
double * array
1D array to store matrix data
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
_dgematrix operator-(const _dsymatrix &matA, const _dgematrix &matB)
CPPL_INT n
matrix column size
_dgematrix operator*(const _dsymatrix &matA, const _dgematrix &matB)
_dgematrix operator+(const _dsymatrix &matA, const _dgematrix &matB)
(DO NOT USE) Smart-temporary Real Double-precision Symmetric Matrix Class
CPPL_INT n
matrix column size
_dcovector _(dcovector &vec)