Go to the source code of this file.
dgematrix+dsymatrix operator
Definition at line 76 of file dgematrix-dsymatrix.hpp.
References _(), i(), dgematrix::m, dgematrix::n, and dsymatrix::n.
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);
CPPL_INT m
matrix row size
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
Real Double-precision General Dence Matrix Class.
CPPL_INT n
matrix column size
_dcovector _(dcovector &vec)
dgematrix-dsymatrix operator
Definition at line 99 of file dgematrix-dsymatrix.hpp.
References _(), i(), dgematrix::m, dgematrix::n, and dsymatrix::n.
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);
CPPL_INT m
matrix row size
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
Real Double-precision General Dence Matrix Class.
CPPL_INT n
matrix column size
_dcovector _(dcovector &vec)
dgematrix*dsymatrix operator
Definition at line 122 of file dgematrix-dsymatrix.hpp.
References _(), dgematrix::array, dsymatrix::array, dgematrix::m, dgematrix::n, and dsymatrix::n.
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 );
CPPL_INT m
matrix row size
double * array
1D array to store matrix data
CPPL_INT n
matrix column size
Real Double-precision General Dence Matrix Class.
CPPL_INT n
matrix column size
double * array
1D array to store matrix data
_dcovector _(dcovector &vec)