Go to the source code of this file.
Functions | |
_dgematrix | operator+ (const dgematrix &matA, const dsymatrix &matB) |
_dgematrix | operator- (const dgematrix &matA, const dsymatrix &matB) |
_dgematrix | operator* (const dgematrix &matA, const dsymatrix &matB) |
_dgematrix operator+ | ( | const dgematrix & | matA, |
const dsymatrix & | matB | ||
) | [inline] |
dgematrix+dsymatrix operator
Definition at line 72 of file dgematrix-dsymatrix.hpp.
References _(), i(), dgematrix::m, dgematrix::n, and dsymatrix::n.
{VERBOSE_REPORT; #ifdef CPPL_DEBUG if(matA.n!=matB.n || matA.m!=matB.n){ ERROR_REPORT; std::cerr << "These two matrises can not make a summation." << std::endl << "Your input was (" << matA.m << "x" << matA.n << ") + (" << matB.n << "x" << matB.n << ")." << std::endl; exit(1); } #endif//CPPL_DEBUG dgematrix newmat(matA); for(long i=0; i<matA.m; i++){ for(long j=0; j<matA.n; j++){ newmat(i,j) += matB(i,j); } } return _(newmat); }
_dgematrix operator- | ( | const dgematrix & | matA, |
const dsymatrix & | matB | ||
) | [inline] |
dgematrix-dsymatrix operator
Definition at line 95 of file dgematrix-dsymatrix.hpp.
References _(), i(), dgematrix::m, dgematrix::n, and dsymatrix::n.
{VERBOSE_REPORT; #ifdef CPPL_DEBUG if(matA.n!=matB.n || matA.m!=matB.n){ ERROR_REPORT; std::cerr << "These two matrises can not make a subtraction." << std::endl << "Your input was (" << matA.m << "x" << matA.n << ") - (" << matB.n << "x" << matB.n << ")." << std::endl; exit(1); } #endif//CPPL_DEBUG dgematrix newmat(matA); for(long i=0; i<matA.m; i++){ for(long j=0; j<matA.n; j++){ newmat(i,j) -= matB(i,j); } } return _(newmat); }
_dgematrix operator* | ( | const dgematrix & | matA, |
const dsymatrix & | matB | ||
) | [inline] |
dgematrix*dsymatrix operator
Definition at line 118 of file dgematrix-dsymatrix.hpp.
References _(), dgematrix::array, dsymatrix::array, dgematrix::m, dgematrix::n, and dsymatrix::n.
{VERBOSE_REPORT; #ifdef CPPL_DEBUG if(matA.n!=matB.n){ ERROR_REPORT; std::cerr << "These two matrises can not make a product." << std::endl << "Your input was (" << matA.m << "x" << matA.n << ") * (" << matB.n << "x" << matB.n << ")." << std::endl; exit(1); } #endif//CPPL_DEBUG dgematrix newmat( matA.m, matB.n ); dsymm_( 'R', 'l', newmat.m, newmat.n, 1.0, matB.array, matB.n, matA.array, matA.m, 0.0, newmat.array, newmat.m ); return _(newmat); }