6 if(
n!=mat.
n ||
m!=mat.
n){
8 std::cerr <<
"These two matrises can not make a summation." << std::endl
9 <<
"Your input was (" <<
m <<
"x" <<
n <<
") += (" << mat.
n <<
"x" << mat.
n <<
")." << std::endl;
14 for(CPPL_INT
i=0;
i<
m;
i++){
15 for( CPPL_INT j=0; j<
n; j++){
28 if(
n!=mat.
n ||
m!=mat.
n){
30 std::cerr <<
"These two matrises can not make a sutraction." << std::endl
31 <<
"Your input was (" <<
m <<
"x" <<
n <<
") -= (" << mat.
n <<
"x" << mat.
n <<
")." << std::endl;
36 for(CPPL_INT
i=0;
i<
m;
i++){
37 for(CPPL_INT j=0; j<
n; j++){
52 std::cerr <<
"These two matrises can not make a product." << std::endl
53 <<
"Your input was (" <<
m <<
"x" <<
n <<
") *= (" << mat.
n <<
"x" << mat.
n <<
")." << std::endl;
64 dsymm_( &side, &uplo, &mat.
n, &
n, &alpha, mat.
array, &mat.
n,
array, &
m, &beta, newmat.
array, &newmat.
m );
79 if(matA.
n!=matB.
n || matA.
m!=matB.
n){
81 std::cerr <<
"These two matrises can not make a summation." << std::endl
82 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") + (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
88 for(CPPL_INT
i=0;
i<matA.
m;
i++){
89 for(CPPL_INT j=0; j<matA.
n; j++){
90 newmat(
i,j) += matB(
i,j);
100 {CPPL_VERBOSE_REPORT;
102 if(matA.
n!=matB.
n || matA.
m!=matB.
n){
104 std::cerr <<
"These two matrises can not make a subtraction." << std::endl
105 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") - (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
111 for(CPPL_INT
i=0;
i<matA.
m;
i++){
112 for(CPPL_INT j=0; j<matA.
n; j++){
113 newmat(
i,j) -= matB(
i,j);
123 {CPPL_VERBOSE_REPORT;
127 std::cerr <<
"These two matrises can not make a product." << std::endl
128 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") * (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
139 dsymm_( &side, &uplo, &newmat.
m, &newmat.
n, &alpha, matB.
array, &matB.
n, matA.
array, &matA.
m, &beta, newmat.
array, &newmat.
m );
_dgematrix operator-(const dgematrix &matA, const dsymatrix &matB)
CPPL_INT m
matrix row size
double * array
1D array to store matrix data
_dgematrix i(const _dgbmatrix &mat)
friend void swap(dgematrix &, dgematrix &)
double & operator()(const CPPL_INT &, const CPPL_INT &)
CPPL_INT n
matrix column size
Real Double-precision General Dence Matrix Class.
Real Double-precision Symmetric Matrix Class [l-type (UPLO=l) Strage].
dgematrix & operator*=(const dgematrix &)
(DO NOT USE) Smart-temporary Real Double-precision General Dence Matrix Class
_dgematrix operator+(const dgematrix &matA, const dsymatrix &matB)
CPPL_INT n
matrix column size
dgematrix & operator-=(const dgematrix &)
friend _dgematrix i(const dgematrix &)
double * array
1D array to store matrix data
dgematrix & operator+=(const dgematrix &)
_dcovector _(dcovector &vec)
_dgematrix operator*(const dgematrix &matA, const dsymatrix &matB)