6 std::cerr <<
"# [MARK] zgematrix::operator=(const zhematrix&)"
11 for(
long i=0;
i<mat.N;
i++){
for(
long j=0; j<mat.N; j++){
27 std::cerr <<
"# [MARK] zgematrix::operator+=(const zhematrix&)"
32 if(N!=mat.N || M!=mat.N){
33 std::cerr <<
"[ERROR] zgematrix::operator+=(zhematrix&)" << std::endl
34 <<
"These two matrises can not make a summation." << std::endl
35 <<
"Your input was (" << M <<
"x" << N <<
") += ("
36 << mat.N <<
"x" << mat.N <<
")." << std::endl;
41 for(
long i=0;
i<M;
i++){
for(
long j=0; j<N; j++){
53 std::cerr <<
"# [MARK] zgematrix::operator-=(const zhematrix&)"
58 if(N!=mat.N || M!=mat.N){
59 std::cerr <<
"[ERROR] zgematrix::operator-=(zhematrix&)" << std::endl
60 <<
"These two matrises can not make a sutraction." << std::endl
61 <<
"Your input was (" << M <<
"x" << N <<
") -= ("
62 << mat.N <<
"x" << mat.N <<
")." << std::endl;
67 for(
long i=0;
i<M;
i++){
for(
long j=0; j<N; j++){
79 std::cerr <<
"# [MARK] zgematrix::operator*=(const zhematrix&)"
85 std::cerr <<
"[ERROR] zgematrix::operator*=(zhematrix&)" << std::endl
86 <<
"These two matrises can not make a product." << std::endl
87 <<
"Your input was (" << M <<
"x" << N <<
") *= ("
88 << mat.N <<
"x" << mat.N <<
")." << std::endl;
95 zhemm_(
'R',
'L', mat.N, N, std::complex<double>(1.0,0.0), mat.Array, mat.N,
96 Array, M, std::complex<double>(0.0,0.0), newmat.array, newmat.m );
111 std::cerr <<
"# [MARK] operator+(const zgematrix&, const zhematrix&)"
116 if(matA.N!=matB.N || matA.M!=matB.N){
117 std::cerr <<
"[ERROR] operator+(zgematrix&, _zgematrix&)" << std::endl
118 <<
"These two matrises can not make a summation." << std::endl
119 <<
"Your input was (" << matA.M <<
"x" << matA.N <<
") + ("
120 << matB.N <<
"x" << matB.N <<
")." << std::endl;
126 for(
long i=0; i<matA.M; i++){
for(
long j=0; j<matA.N; j++){
127 newmat(i,j) += matB(i,j);
138 std::cerr <<
"# [MARK] operator-(const zgematrix&, const zhematrix&)"
143 if(matA.N!=matB.N || matA.M!=matB.N){
144 std::cerr <<
"[ERROR] operator-(zgematrix&, _zgematrix&)" << std::endl
145 <<
"These two matrises can not make a subtraction." << std::endl
146 <<
"Your input was (" << matA.M <<
"x" << matA.N <<
") - ("
147 << matB.N <<
"x" << matB.N <<
")." << std::endl;
153 for(
long i=0; i<matA.M; i++){
for(
long j=0; j<matA.N; j++){
154 newmat(i,j) -= matB(i,j);
165 std::cerr <<
"# [MARK] operator*(const zgematrix&, const zhematrix&)"
171 std::cerr <<
"[ERROR] operator*(zgematrix&, _zhematrix&)" << std::endl
172 <<
"These two matrises can not make a product." << std::endl
173 <<
"Your input was (" << matA.M <<
"x" << matA.N <<
") * ("
174 << matB.N <<
"x" << matB.N <<
")." << std::endl;
180 zhemm_(
'R',
'L', newmat.M, newmat.N, std::complex<double>(1.0,0.0),
181 matB.Array, newmat.N, matA.Array, newmat.M,
182 std::complex<double>(0.0,0.0), newmat.array, newmat.M );
void resize(const long &, const long &)
Definition: zgematrix-misc.hpp:126
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
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
Complex Double-precision Hermitian Matrix Class [L-type (UPLO=L) Strage].
Definition: zhematrix.hpp:4
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