Go to the source code of this file.
zgematrix+_zhematrix operator
Definition at line 79 of file zgematrix-_zhematrix.hpp.
References _(), _zhematrix::destroy(), i(), zgematrix::m, zgematrix::n, and _zhematrix::n.
82 if(matA.
n!=matB.
n || matA.
m!=matB.
n){
84 std::cerr <<
"These two matrises can not make a summation." << std::endl
85 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") + (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
92 for(CPPL_INT
i=0;
i<matA.
m;
i++){
93 for(CPPL_INT j=0; j<matA.
n; j++){
94 newmat(
i,j) +=matB(
i,j);
CPPL_INT n
matrix column size
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
Complex Double-precision General Dence Matrix Class.
CPPL_INT m
matrix row size
_dcovector _(dcovector &vec)
zgematrix-_zhematrix operator
Definition at line 104 of file zgematrix-_zhematrix.hpp.
References _(), _zhematrix::destroy(), i(), zgematrix::m, zgematrix::n, and _zhematrix::n.
105 {CPPL_VERBOSE_REPORT;
107 if(matA.
n!=matB.
n || matA.
m!=matB.
n){
109 std::cerr <<
"These two matrises can not make a subtraction." << std::endl
110 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") - (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
117 for(CPPL_INT
i=0;
i<matA.
m;
i++){
118 for(CPPL_INT j=0; j<matA.
n; j++){
119 newmat(
i,j) -=matB(
i,j);
CPPL_INT n
matrix column size
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
Complex Double-precision General Dence Matrix Class.
CPPL_INT m
matrix row size
_dcovector _(dcovector &vec)
zgematrix*_zhematrix operator
Definition at line 129 of file zgematrix-_zhematrix.hpp.
References _(), zgematrix::array, _zhematrix::array, _zhematrix::destroy(), zgematrix::m, zgematrix::n, and _zhematrix::n.
130 {CPPL_VERBOSE_REPORT;
134 std::cerr <<
"These two matrises can not make a product." << std::endl
135 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") * (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
143 comple alpha =comple(1.,0.);
144 comple beta =comple(0.,0.);
146 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
CPPL_INT n
matrix column size
Complex Double-precision General Dence Matrix Class.
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)