6 std::cerr <<
"# [MARK] zhematrix::operator=(const zhematrix&)"
25 std::cerr <<
"# [MARK] zhematrix::operator+=(const zhematrix&)"
31 std::cerr <<
"[ERROR] zhematrix::operator+=(zhematrix&)" << std::endl
32 <<
"These two matrises can not make a summation." << std::endl
33 <<
"Your input was (" << N <<
"x" << N <<
") += ("
34 << mat.N <<
"x" << mat.N <<
")." << std::endl;
39 for(
long i=0;
i<N;
i++){
for(
long j=0; j<=
i; j++){
51 std::cerr <<
"# [MARK] zhematrix::operator-=(const zhematrix&)"
57 std::cerr <<
"[ERROR] zhematrix::operator-=(zhematrix&)" << std::endl
58 <<
"These two matrises can not make a sutraction." << std::endl
59 <<
"Your input was (" << N <<
"x" << N <<
") -= ("
60 << mat.N <<
"x" << mat.N <<
")." << std::endl;
65 for(
long i=0;
i<N;
i++){
for(
long j=0; j<=
i; j++){
77 std::cerr <<
"# [MARK] operator+(const zhematrix&, const zhematrix&)"
83 std::cerr <<
"[ERROR] operator+(zhematrix&, zhematrix&)" << std::endl
84 <<
"These two matrises can not make a summation." << std::endl
85 <<
"Your input was (" << matA.N <<
"x" << matA.N <<
") + ("
86 << matB.N <<
"x" << matB.N <<
")." << std::endl;
93 for(
long i=0; i<N; i++){
for(
long j=0; j<=i; j++){
94 newmat.Array[i+N*j] = matA.Array[i+N*j] + matB.Array[i+N*j];
105 std::cerr <<
"# [MARK] operator-(const zhematrix&, const zhematrix&)"
111 std::cerr <<
"[ERROR] operator-(zhematrix&, zhematrix&)" << std::endl
112 <<
"These two matrises can not make a subtraction." << std::endl
113 <<
"Your input was (" << matA.N <<
"x" << matA.N <<
") - ("
114 << matB.N <<
"x" << matB.N <<
")." << std::endl;
121 for(
long i=0; i<N; i++){
for(
long j=0; j<=i; j++){
122 newmat.Array[i+N*j] =matA.Array[i+N*j]-matB.Array[i+N*j];
133 std::cerr <<
"# [MARK] operator*(const zhematrix&, const zhematrix&)"
139 std::cerr <<
"[ERROR] operator*(zhematrix&, zhematrix&)" << std::endl
140 <<
"These two matrises can not make a product." << std::endl
141 <<
"Your input was (" << matA.N <<
"x" << matA.N <<
") * ("
142 << matB.N <<
"x" << matB.N <<
")." << std::endl;
150 zhemm_(
'L',
'L', matA.N, matB.N, std::complex<double>(1.0,0.0),
151 matA.Array, matA.N, matB.Array, matB.N,
152 std::complex<double>(0.0,0.0), newmat.
array, newmat.
m );
__zhecomplex operator()(const long &, const long &)
Definition: zhematrix-io.hpp:3
(DO NOT USE) Smart-temporary Complex Double-precision Hermitian Matrix Class
Definition: _zhematrix.hpp:3
zhematrix & operator+=(const zhematrix &)
Definition: zhematrix-zhematrix.hpp:22
long const & m
matrix row size (readable)
Definition: zgematrix.hpp:14
friend _zrovector operator-(const _zrovector &)
Definition: _zrovector-unary.hpp:15
void complete() const
Definition: zhematrix-misc.hpp:3
Complex Double-precision General Dence Matrix Class.
Definition: zgematrix.hpp:3
void copy(const zhematrix &)
Definition: zhematrix-misc.hpp:95
(DO NOT USE) Smart-temporary Complex Double-precision General Dence Matrix Class
Definition: _zgematrix.hpp:3
friend _zgematrix i(const zhematrix &)
Definition: zhematrix-calc.hpp:20
friend _zrovector operator*(const zrovector &, const zgematrix &)
Definition: zrovector-zgematrix.hpp:3
std::complex< double > * Array
1D Array to store vector data
Definition: _zrovector.hpp:8
zhematrix & operator=(const zhematrix &)
Definition: zhematrix-zhematrix.hpp:3
Complex Double-precision Hermitian Matrix Class [L-type (UPLO=L) Strage].
Definition: zhematrix.hpp:4
std::complex< double > *const & array
1D array to store matrix data (readable)
Definition: zgematrix.hpp:16
zhematrix & operator-=(const zhematrix &)
Definition: zhematrix-zhematrix.hpp:48
friend const _zrovector & operator+(const _zrovector &)
Definition: _zrovector-unary.hpp:3