Go to the source code of this file.
zgematrix+zgematrix operator
Definition at line 86 of file zgematrix-zgematrix.hpp.
References _(), zgematrix::array, i(), zgematrix::m, and zgematrix::n.
89 if(matA.
n!=matB.
n || matA.
m!=matB.
m){
91 std::cerr <<
"These two matrises can not make a summation." << std::endl
92 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") + (" << matB.
m <<
"x" << matB.
n <<
")." << std::endl;
99 const CPPL_INT size =matA.
m*matA.
n;
100 for(CPPL_INT
i=0;
i<size;
i++){
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
Complex Double-precision General Dence Matrix Class.
comple * array
1D array to store matrix data
CPPL_INT m
matrix row size
_dcovector _(dcovector &vec)
zgematrix-zgematrix operator
Definition at line 109 of file zgematrix-zgematrix.hpp.
References _(), zgematrix::array, i(), zgematrix::m, and zgematrix::n.
110 {CPPL_VERBOSE_REPORT;
112 if(matA.
n!=matB.
n || matA.
m!=matB.
m){
114 std::cerr <<
"These two matrises can not make a subtraction." << std::endl
115 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") - (" << matB.
m <<
"x" << matB.
n <<
")." << std::endl;
122 const CPPL_INT size =matA.
m*matA.
n;
123 for(CPPL_INT
i=0;
i<size;
i++){
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
Complex Double-precision General Dence Matrix Class.
comple * array
1D array to store matrix data
CPPL_INT m
matrix row size
_dcovector _(dcovector &vec)
zgematrix*zgematrix operator
Definition at line 132 of file zgematrix-zgematrix.hpp.
References _(), zgematrix::array, zgematrix::m, and zgematrix::n.
133 {CPPL_VERBOSE_REPORT;
137 std::cerr <<
"These two matrises can not make a product." << std::endl
138 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") * (" << matB.
m <<
"x" << matB.
n <<
")." << std::endl;
146 comple alpha =comple(1.,0.);
147 comple beta =comple(0.,0.);
149 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 n
matrix column size
Complex Double-precision General Dence Matrix Class.
comple * array
1D array to store matrix data
CPPL_INT m
matrix row size
_dcovector _(dcovector &vec)
return Hadamerd product
Definition at line 160 of file zgematrix-zgematrix.hpp.
References _(), i(), zgematrix::m, and zgematrix::n.
161 {CPPL_VERBOSE_REPORT;
163 if( matA.
m!=matB.
m || matA.
n!=matB.
n ){
165 std::cerr <<
"These two matrices can not make Hadamerd product." << std::endl
166 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") and (" << matB.
m <<
"x" << matB.
n <<
")." << std::endl;
173 for(CPPL_INT
i=0;
i<newmat.
m;
i++){
174 for(CPPL_INT j=0; j<newmat.n; j++){
175 newmat(
i,j) =matA(
i,j)*matB(
i,j);
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
Complex Double-precision General Dence Matrix Class.
CPPL_INT m
matrix row size
CPPL_INT m
matrix row size
_dcovector _(dcovector &vec)