Go to the source code of this file.
zgematrix+zhematrix operator
Definition at line 76 of file zgematrix-zhematrix.hpp.
References _(), i(), zgematrix::m, zgematrix::n, and zhematrix::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;
89 for(CPPL_INT
i=0;
i<matA.
m;
i++){
90 for(CPPL_INT j=0; j<matA.
n; j++){
91 newmat(
i,j) += matB(
i,j);
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
Complex Double-precision General Dence Matrix Class.
CPPL_INT n
matrix column size
CPPL_INT m
matrix row size
_dcovector _(dcovector &vec)
zgematrix-zhematrix operator
Definition at line 100 of file zgematrix-zhematrix.hpp.
References _(), i(), zgematrix::m, zgematrix::n, and zhematrix::n.
101 {CPPL_VERBOSE_REPORT;
103 if(matA.
n!=matB.
n || matA.
m!=matB.
n){
105 std::cerr <<
"These two matrises can not make a subtraction." << std::endl
106 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") - (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
113 for(CPPL_INT
i=0;
i<matA.
m;
i++){
114 for(CPPL_INT j=0; j<matA.
n; j++){
115 newmat(
i,j) -= matB(
i,j);
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
Complex Double-precision General Dence Matrix Class.
CPPL_INT n
matrix column size
CPPL_INT m
matrix row size
_dcovector _(dcovector &vec)
zgematrix*zhematrix operator
Definition at line 124 of file zgematrix-zhematrix.hpp.
References _(), zgematrix::array, zhematrix::array, zgematrix::m, zgematrix::n, and zhematrix::n.
125 {CPPL_VERBOSE_REPORT;
129 std::cerr <<
"These two matrises can not make a product." << std::endl
130 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") * (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
138 comple alpha =comple(1.,0.);
139 comple beta =comple(0.,0.);
141 zhemm_( &side, &uplo, &newmat.m, &newmat.n, &alpha, matB.
array, &matB.
n, matA.
array, &matA.
m, &beta, newmat.array, &newmat.m );
CPPL_INT n
matrix column size
Complex Double-precision General Dence Matrix Class.
CPPL_INT n
matrix column size
comple * array
1D array to store matrix data
comple * array
1D array to store matrix data
CPPL_INT m
matrix row size
_dcovector _(dcovector &vec)