6 if(
n!=mat.
n ||
m!=mat.
n){
8 std::cerr <<
"These two matrises can not make a summation." << std::endl
9 <<
"Your input was (" <<
m <<
"x" <<
n <<
") += (" << mat.
n <<
"x" << mat.
n <<
")." << std::endl;
14 for(CPPL_INT
i=0;
i<
m;
i++){
15 for(CPPL_INT j=0; j<
n; j++){
29 if(
n!=mat.
n ||
m!=mat.
n){
31 std::cerr <<
"These two matrises can not make a sutraction." << std::endl
32 <<
"Your input was (" <<
m <<
"x" <<
n <<
") -= (" << mat.
n <<
"x" << mat.
n <<
")." << std::endl;
37 for(CPPL_INT
i=0;
i<
m;
i++){
38 for(CPPL_INT j=0; j<
n; j++){
54 std::cerr <<
"These two matrises can not make a product." << std::endl
55 <<
"Your input was (" <<
m <<
"x" <<
n <<
") *= (" << mat.
n <<
"x" << mat.
n <<
")." << std::endl;
63 comple alpha =comple(1.,0.);
64 comple beta =comple(0.,0.);
66 zhemm_( &side, &uplo, &mat.
n, &
n, &alpha, mat.
array, &mat.
n,
array, &
m, &beta, newmat.
array, &newmat.
m );
82 if(matA.
n!=matB.
n || matA.
m!=matB.
n){
84 std::cerr <<
"These two matrises can not make a summation." << std::endl
85 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") + (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
92 for(CPPL_INT
i=0;
i<matA.
m;
i++){
93 for(CPPL_INT j=0; j<matA.
n; j++){
94 newmat(
i,j) +=matB(
i,j);
105 {CPPL_VERBOSE_REPORT;
107 if(matA.
n!=matB.
n || matA.
m!=matB.
n){
109 std::cerr <<
"These two matrises can not make a subtraction." << std::endl
110 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") - (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
117 for(CPPL_INT
i=0;
i<matA.
m;
i++){
118 for(CPPL_INT j=0; j<matA.
n; j++){
119 newmat(
i,j) -=matB(
i,j);
130 {CPPL_VERBOSE_REPORT;
134 std::cerr <<
"These two matrises can not make a product." << std::endl
135 <<
"Your input was (" << matA.
m <<
"x" << matA.
n <<
") * (" << matB.
n <<
"x" << matB.
n <<
")." << std::endl;
143 comple alpha =comple(1.,0.);
144 comple beta =comple(0.,0.);
146 zhemm_( &side, &uplo, &newmat.
m, &newmat.
n, &alpha, matB.
array, &matB.
n, matA.
array, &matA.
m, &beta, newmat.
array, &newmat.
m );
(DO NOT USE) Smart-temporary Complex Double-precision Hermitian Matrix Class
_zgematrix operator*(const zgematrix &matA, const _zhematrix &matB)
CPPL_INT n
matrix column size
comple & operator()(const CPPL_INT &, const CPPL_INT &)
zgematrix & operator-=(const zgematrix &)
_dgematrix i(const _dgbmatrix &mat)
friend _zgematrix i(const zgematrix &)
CPPL_INT n
matrix column size
zgematrix & operator*=(const zgematrix &)
Complex Double-precision General Dence Matrix Class.
comple * array
1D array to store matrix data
(DO NOT USE) Smart-temporary Complex Double-precision General Dence Matrix Class
comple * array
1D array to store matrix data
CPPL_INT m
matrix row size
zgematrix & operator+=(const zgematrix &)
friend void swap(zgematrix &, zgematrix &)
_dcovector _(dcovector &vec)
_zgematrix operator+(const zgematrix &matA, const _zhematrix &matB)
_zgematrix operator-(const zgematrix &matA, const _zhematrix &matB)