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