4 : n(N), array(
Array), darray(Darray)
7 std::cerr <<
"# [MARK] zhematrix::zhematrix()"
17 std::cerr <<
"# [NOTE] zhematrix::zhematrix() "
18 <<
"A new 0x0 matrix at " <<
Array
19 <<
" has been made." << std::endl;
26 : n(N), array(
Array), darray(Darray)
29 std::cerr <<
"# [MARK] zhematrix::zhematrix(const zhematrix&)"
35 Array =
new std::complex<double>[N*N];
36 Darray =
new std::complex<double>*[N];
37 for(
int i=0;
i<N;
i++){ Darray[
i] =&
Array[
i*N]; }
40 zcopy_(N*N, mat.Array, 1,
Array, 1);
43 std::cerr <<
"# [NOTE] zhematrix::zhematrix(const zhematrix&) "
44 <<
"A new matrix at " <<
Array <<
" has been made." << std::endl;
51 : n(N), array(
Array), darray(Darray)
54 std::cerr <<
"# [MARK] zhematrix::zhematrix(const _zhematrix&)"
63 std::cerr <<
"# [NOTE] zhematrix::zhematrix(const _zhematrix&) "
64 <<
"A new matrix pointing at " <<
Array
73 : n(N), array(
Array), darray(Darray)
76 std::cerr <<
"# [MARK] zhematrix::zhematrix(const long&)"
82 std::cerr <<
"[ERROR] zhematrix::zhematrix(const long)"
84 <<
"Matrix sizes must be positive integers. " << std::endl
85 <<
"Your input was (" << _n <<
")." << std::endl;
92 Array =
new std::complex<double>[N*N];
93 Darray =
new std::complex<double>*[N];
94 for(
int i=0;
i<N;
i++){ Darray[
i] =&
Array[
i*N]; }
97 std::cerr <<
"# [NOTE] zhematrix(long) "
98 <<
"A new matrix at " <<
Array
99 <<
" has been made." << std::endl;
106 : n(N), array(
Array), darray(Darray)
109 std::cerr <<
"# [MARK] zhematrix::zhematrix(const char*)"
120 std::cerr <<
"# [NOTE] zhematrix::zhematrix(const char*) "
121 <<
"A new matrix at " <<
Array <<
" has been made." << std::endl;
134 std::cerr <<
"# [MARK] zhematrix::~zhematrix()"
139 std::cerr <<
"# [NOTE] zhematrix::~zhematrix() "
140 <<
"A matrix at " <<
Array <<
" is going to be deleted." << std::endl;
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
zhematrix()
Definition: zhematrix-constructor.hpp:3
~zhematrix()
Definition: zhematrix-constructor.hpp:131
friend _zgematrix i(const zhematrix &)
Definition: zhematrix-calc.hpp:20
std::complex< double > * Array
1D Array to store matrix data
Definition: _zhematrix.hpp:8
Complex Double-precision Hermitian Matrix Class [L-type (UPLO=L) Strage].
Definition: zhematrix.hpp:4
long N
matrix column or row size
Definition: _zhematrix.hpp:7
std::complex< double > * Array
1D Array to store vector data
Definition: _zrovector.hpp:8