6 std::cerr <<
"# [MARK] operator+(const _zgematrix&, const zhematrix&)"
11 if(matA.
N!=matB.N || matA.
M!=matB.N){
12 std::cerr <<
"[ERROR] operator+(_zgematrix&, zhematrix&)" << std::endl
13 <<
"These two matrises can not make a summation." << std::endl
14 <<
"Your input was (" << matA.
M <<
"x" << matA.
N <<
") + ("
15 << matB.N <<
"x" << matB.N <<
")." << std::endl;
20 for(
long i=0; i<matB.N; i++){
21 for(
long j=0; j<matB.N; j++){
34 std::cerr <<
"# [MARK] operator-(const _zgematrix&, const zhematrix&)"
39 if(matA.
N!=matB.N || matA.
M!=matB.N){
40 std::cerr <<
"[ERROR] operator+(_zgematrix&, zhematrix&)" << std::endl
41 <<
"These two matrises can not make a summation." << std::endl
42 <<
"Your input was (" << matA.
M <<
"x" << matA.
N <<
") + ("
43 << matB.N <<
"x" << matB.N <<
")." << std::endl;
48 for(
long i=0; i<matB.N; i++){
49 for(
long j=0; j<matB.N; j++){
62 std::cerr <<
"# [MARK] operator*(const _zgematrix&, const zhematrix&)"
68 std::cerr <<
"[ERROR] operator*(_zgematrix&, zhematrix&)" << std::endl
69 <<
"These two matrises can not make a product." << std::endl
70 <<
"Your input was (" << matA.
M <<
"x" << matA.
N <<
") * ("
71 << matB.N <<
"x" << matB.N <<
")." << std::endl;
77 zhemm_(
'R',
'L', matB.N, matA.
N, std::complex<double>(1.0,0.0),
78 matB.Array, matB.N, matA.
Array, matA.
M,
79 std::complex<double>(0.0,0.0), newmat.
array, newmat.
m );
std::complex< double > *const & array
1D array to store matrix data (readable)
Definition: zgematrix.hpp:16
long N
matrix column size
Definition: _zgematrix.hpp:8
friend _zrovector operator-(const _zrovector &)
Definition: _zrovector-unary.hpp:15
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 destroy() const
Definition: _zgematrix-misc.hpp:3
std::complex< double > * Array
1D Array to store matrix data
Definition: _zgematrix.hpp:9
friend _zrovector operator*(const zrovector &, const zgematrix &)
Definition: zrovector-zgematrix.hpp:3
long M
matrix row size
Definition: _zgematrix.hpp:7
long const & m
matrix row size (readable)
Definition: zgematrix.hpp:14
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