Go to the source code of this file.
zgematrix+_zgematrix operator
Definition at line 89 of file zgematrix-_zgematrix.hpp.
References _zgematrix::array, zgematrix::array, i(), _zgematrix::m, zgematrix::m, zgematrix::n, and _zgematrix::n.
92 if(matA.
n!=matB.
n || matA.
m!=matB.
m){
94 std::cerr <<
"These two matrises can not make a summation." << std::endl
95 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") + (" << matB.
m <<
"x" << matB.
n <<
")." << std::endl;
100 const CPPL_INT size =matA.
m*matA.
n;
101 for(CPPL_INT
i=0;
i<size;
i++){
CPPL_INT m
matrix row size
_dgematrix i(const _dgbmatrix &mat)
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
CPPL_INT n
matrix column size
zgematrix-_zgematrix operator
Definition at line 110 of file zgematrix-_zgematrix.hpp.
References _zgematrix::array, zgematrix::array, i(), _zgematrix::m, zgematrix::m, zgematrix::n, and _zgematrix::n.
111 {CPPL_VERBOSE_REPORT;
113 if(matA.
n!=matB.
n || matA.
m!=matB.
m){
115 std::cerr <<
"These two matrises can not make a subtraction." << std::endl
116 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") - (" << matB.
m <<
"x" << matB.
n <<
")." << std::endl;
121 const CPPL_INT size =matA.
m*matA.
n;
122 for(CPPL_INT
i=0;
i<size;
i++){
CPPL_INT m
matrix row size
_dgematrix i(const _dgbmatrix &mat)
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
CPPL_INT n
matrix column size
zgematrix*_zgematrix operator
Definition at line 131 of file zgematrix-_zgematrix.hpp.
References _(), zgematrix::array, _zgematrix::array, _zgematrix::destroy(), _zgematrix::m, zgematrix::m, _zgematrix::n, and zgematrix::n.
132 {CPPL_VERBOSE_REPORT;
136 std::cerr <<
"These two matrises can not make a product." << std::endl
137 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") * (" << matB.
m <<
"x" << matB.
n <<
")." << std::endl;
145 comple alpha =comple(1.,0.);
146 comple beta =comple(0.,0.);
148 zgemm_( &transa, &transb, &matA.
m, &matB.
n, &matA.
n, &alpha, matA.
array, &matA.
m, matB.
array, &matB.
m, &beta, newmat.array, &matA.
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
CPPL_INT m
matrix row size
_dcovector _(dcovector &vec)
CPPL_INT n
matrix column size