Go to the source code of this file.
_zgematrix+zhematrix 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;
14 for(CPPL_INT
i=0;
i<matA.
n;
i++){
15 for(CPPL_INT j=0; j<matA.
n; j++){
16 matB(
i,j) += matA(
i,j);
CPPL_INT m
matrix row size
CPPL_INT n
matrix column size
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
_zhematrix-zgematrix operator
Definition at line 26 of file _zhematrix-_zgematrix.hpp.
References _zhematrix::destroy(), i(), _zgematrix::m, _zgematrix::n, and _zhematrix::n.
29 if(matA.
n!=matB.
n || matA.
n!=matB.
m){
31 std::cerr <<
"These two matrises can not make a subtraction." << std::endl
32 <<
"Your input was (" << matA.
n <<
"x" << matA.
n <<
") - (" << matB.
m <<
"x" << matB.
n <<
")." << std::endl;
37 for(CPPL_INT
i=0;
i<matA.
n;
i++){
38 for(CPPL_INT j=0; j<matA.
n; j++){
39 matB(
i,j) =matA(
i,j)-matB(
i,j);
CPPL_INT m
matrix row size
CPPL_INT n
matrix column size
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
_zgematrix*zgematrix operator
Definition at line 49 of file _zhematrix-_zgematrix.hpp.
References _(), _zgematrix::array, zgematrix::array, _zhematrix::array, _zgematrix::destroy(), _zhematrix::destroy(), _zgematrix::m, zgematrix::m, _zgematrix::n, and _zhematrix::n.
54 std::cerr <<
"These two matrises can not make a product." << std::endl
55 <<
"Your input was (" << matA.
n <<
"x" << matA.
n <<
") * (" << matB.
m <<
"x" << matB.
n <<
")." << std::endl;
63 comple alpha =comple(1.,0.);
64 comple beta =comple(0.,0.);
66 zhemm_( &side, &uplo, &matA.
n, &matB.
n, &alpha, matA.
array, &matA.
n, matB.
array, &matB.
m, &beta, newmat.array, &newmat.m );
CPPL_INT m
matrix row 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
_dcovector _(dcovector &vec)
CPPL_INT n
matrix column size