Go to the source code of this file.
_zhematrix+zgematrix operator
Definition at line 3 of file _zhematrix-zgematrix.hpp.
References _(), _zhematrix::destroy(), i(), zgematrix::m, zgematrix::n, and _zhematrix::n.
6 if(matA.
n!=matB.
n || matA.
n!=matB.
m){
8 std::cerr <<
"These two matrises can not make a summation." << std::endl
9 <<
"Your input was (" << matA.
n <<
"x" << matA.
n <<
") + (" << matB.
m <<
"x" << matB.
n <<
")." << std::endl;
16 for(CPPL_INT
i=0;
i<matA.
n;
i++){
17 for(CPPL_INT j=0; j<matA.
n; j++){
18 newmat(
i,j) =matA(
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)
_zhematrix-zgematrix operator
Definition at line 28 of file _zhematrix-zgematrix.hpp.
References _(), _zhematrix::destroy(), i(), zgematrix::m, zgematrix::n, and _zhematrix::n.
31 if(matA.
n!=matB.
n || matA.
n!=matB.
m){
33 std::cerr <<
"These two matrises can not make a subtraction." << std::endl
34 <<
"Your input was (" << matA.
n <<
"x" << matA.
n <<
") - (" << matB.
m <<
"x" << matB.
n <<
")." << std::endl;
41 for(CPPL_INT
i=0;
i<matA.
n;
i++){
42 for(CPPL_INT j=0; j<matA.
n; j++){
43 newmat(
i,j) =matA(
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)
_zhematrix*zgematrix operator
Definition at line 53 of file _zhematrix-zgematrix.hpp.
References _(), zgematrix::array, _zhematrix::array, _zhematrix::destroy(), zgematrix::m, zgematrix::n, and _zhematrix::n.
58 std::cerr <<
"These two matrises can not make a product." << std::endl
59 <<
"Your input was (" << matA.
n <<
"x" << matA.
n <<
") * (" << matB.
m <<
"x" << matB.
n <<
")." << std::endl;
67 comple alpha =comple(1.,0.);
68 comple beta =comple(0.,0.);
70 zhemm_( &side, &uplo, &matA.
n, &matB.
n, &alpha, matA.
array, &matA.
n, matB.
array, &matB.
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)