6 std::cerr <<
"# [MARK] zgematrix::operator=(const _zhematrix&)"
32 std::cerr <<
"# [MARK] zgematrix::operator+=(const _zhematrix&)"
37 if(N!=mat.
N || M!=mat.
N){
38 std::cerr <<
"[ERROR] zgematrix::operator+=(_zhematrix&)" << std::endl
39 <<
"These two matrises can not make a summation." << std::endl
40 <<
"Your input was (" << M <<
"x" << N <<
") += ("
41 << mat.
N <<
"x" << mat.
N <<
")." << std::endl;
46 for(
long i=0;
i<M;
i++){
for(
long j=0; j<N; j++){
59 std::cerr <<
"# [MARK] zgematrix::operator-=(const _zhematrix&)"
64 if(N!=mat.
N || M!=mat.
N){
65 std::cerr <<
"[ERROR] zgematrix::operator-=(_zhematrix&)" << std::endl
66 <<
"These two matrises can not make a sutraction." << std::endl
67 <<
"Your input was (" << M <<
"x" << N <<
") -= ("
68 << mat.
N <<
"x" << mat.
N <<
")." << std::endl;
73 for(
long i=0;
i<M;
i++){
for(
long j=0; j<N; j++){
86 std::cerr <<
"# [MARK] zgematrix::operator*=(const _zhematrix&)"
92 std::cerr <<
"[ERROR] zgematrix::operator*=(_zhematrix&)" << std::endl
93 <<
"These two matrises can not make a product." << std::endl
94 <<
"Your input was (" << M <<
"x" << N <<
") *= ("
95 << mat.
N <<
"x" << mat.
N <<
")." << std::endl;
102 zhemm_(
'R',
'L', mat.
N, N, std::complex<double>(1.0,0.0), mat.
Array, mat.
N,
103 Array, M, std::complex<double>(0.0,0.0), newmat.array, newmat.m );
119 std::cerr <<
"# [MARK] operator+(const zgematrix&, const _zhematrix&)"
124 if(matA.N!=matB.
N || matA.M!=matB.
N){
125 std::cerr <<
"[ERROR] operator+(zgematrix&, _zgematrix&)" << std::endl
126 <<
"These two matrises can not make a summation." << std::endl
127 <<
"Your input was (" << matA.M <<
"x" << matA.N <<
") + ("
128 << matB.
N <<
"x" << matB.
N <<
")." << std::endl;
134 for(
long i=0; i<matA.M; i++){
for(
long j=0; j<matA.N; j++){
135 newmat(i,j) +=matB(i,j);
147 std::cerr <<
"# [MARK] operator-(const zgematrix&, const _zhematrix&)"
152 if(matA.N!=matB.
N || matA.M!=matB.
N){
153 std::cerr <<
"[ERROR] operator-(zgematrix&, _zgematrix&)" << std::endl
154 <<
"These two matrises can not make a subtraction." << std::endl
155 <<
"Your input was (" << matA.M <<
"x" << matA.N <<
") - ("
156 << matB.
N <<
"x" << matB.
N <<
")." << std::endl;
162 for(
long i=0; i<matA.M; i++){
for(
long j=0; j<matA.N; j++){
163 newmat(i,j) -=matB(i,j);
175 std::cerr <<
"# [MARK] operator*(const zgematrix&, const _zhematrix&)"
181 std::cerr <<
"[ERROR] operator*(zgematrix&, _zgematrix&)" << std::endl
182 <<
"These two matrises can not make a product." << std::endl
183 <<
"Your input was (" << matA.M <<
"x" << matA.N <<
") * ("
184 << matB.
N <<
"x" << matB.
N <<
")." << std::endl;
191 zhemm_(
'R',
'L', matB.
N, matA.N, std::complex<double>(1.0,0.0),
192 matB.
Array, matB.
N, matA.Array, matA.M,
193 std::complex<double>(0.0,0.0), newmat.array, newmat.m );
std::complex< double > ** Darray
array of pointers of column head addresses
Definition: _zhematrix.hpp:9
(DO NOT USE) Smart-temporary Complex Double-precision Hermitian Matrix Class
Definition: _zhematrix.hpp:3
zgematrix & operator-=(const zgematrix &)
Definition: zgematrix-zgematrix.hpp:45
friend _zrovector operator-(const _zrovector &)
Definition: _zrovector-unary.hpp:15
zgematrix & operator=(const zgematrix &)
Definition: zgematrix-zgematrix.hpp:3
friend _zgematrix i(const zgematrix &)
Definition: zgematrix-calc.hpp:21
zgematrix & operator*=(const zgematrix &)
Definition: zgematrix-zgematrix.hpp:68
Complex Double-precision General Dence Matrix Class.
Definition: zgematrix.hpp:3
(DO NOT USE) Smart-temporary Complex Double-precision General Dence Matrix Class
Definition: _zgematrix.hpp:3
void complete() const
Definition: _zhematrix-misc.hpp:22
void clear()
Definition: zgematrix-misc.hpp:3
void destroy() const
Definition: _zhematrix-misc.hpp:3
std::complex< double > * Array
1D Array to store matrix data
Definition: _zhematrix.hpp:8
std::complex< double > & operator()(const long &, const long &)
Definition: zgematrix-io.hpp:3
friend _zrovector operator*(const zrovector &, const zgematrix &)
Definition: zrovector-zgematrix.hpp:3
zgematrix & operator+=(const zgematrix &)
Definition: zgematrix-zgematrix.hpp:22
friend void swap(zgematrix &, zgematrix &)
Definition: zgematrix-misc.hpp:154
long N
matrix column or row size
Definition: _zhematrix.hpp:7
friend const _zrovector & operator+(const _zrovector &)
Definition: _zrovector-unary.hpp:3
std::complex< double > * Array
1D Array to store vector data
Definition: _zrovector.hpp:8