Go to the source code of this file.
_zgematrix+zhematrix operator
Definition at line 3 of file _zgematrix-zhematrix.hpp.
References i(), _zgematrix::m, _zgematrix::n, and zhematrix::n.
6 if(matA.
n!=matB.
n || matA.
m!=matB.
n){
8 std::cerr <<
"These two matrises can not make a summation." << std::endl
9 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") + (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
14 for(CPPL_INT
i=0;
i<matB.
n;
i++){
15 for(CPPL_INT j=0; j<matB.
n; j++){
16 matA(
i,j) += matB(
i,j);
CPPL_INT m
matrix row size
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
CPPL_INT n
matrix column size
_zgematrix-zhematrix operator
Definition at line 25 of file _zgematrix-zhematrix.hpp.
References i(), _zgematrix::m, _zgematrix::n, and zhematrix::n.
28 if(matA.
n!=matB.
n || matA.
m!=matB.
n){
30 std::cerr <<
"These two matrises can not make a summation." << std::endl
31 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") + (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
36 for(CPPL_INT
i=0;
i<matB.
n;
i++){
37 for(CPPL_INT j=0; j<matB.
n; j++){
38 matA(
i,j) -= matB(
i,j);
CPPL_INT m
matrix row size
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
CPPL_INT n
matrix column size
_zgematrix*zhematrix operator
Definition at line 47 of file _zgematrix-zhematrix.hpp.
References _(), _zgematrix::array, zgematrix::array, zhematrix::array, _zgematrix::destroy(), zgematrix::m, _zgematrix::m, _zgematrix::n, zgematrix::n, and zhematrix::n.
52 std::cerr <<
"These two matrises can not make a product." << std::endl
53 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") * (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
61 comple alpha =comple(1.,0.);
62 comple beta =comple(0.,0.);
64 zhemm_( &side, &uplo, &newmat.m, &newmat.n, &alpha, matB.
array, &matB.
n, matA.
array, &matA.
m, &beta, newmat.array, &newmat.m );
CPPL_INT m
matrix row 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
_dcovector _(dcovector &vec)
CPPL_INT n
matrix column size