My Project
_zhematrix-constructor.hpp
1 //============================================================================
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] _zhematrix::_zhematrix()"
7  << std::endl;
8 #endif//CPPL_VERBOSE
9 
11  N =0;
12  Array =NULL;
13  Darray =NULL;
14 
15 #ifdef CPPL_DEBUG
16  std::cerr << "# [NOTE] _zhematrix::_zhematrix() "
17  << "A new 0x0 matrix at " << Array
18  << " has been made." << std::endl;
19 #endif//CPPL_DEBUG
20 }
21 
22 //============================================================================
24 inline _zhematrix::_zhematrix(const _zhematrix& mat)
25 {
26 #ifdef CPPL_VERBOSE
27  std::cerr << "# [MARK] _zhematrix::_zhematrix(const _zhematrix&)"
28  << std::endl;
29 #endif//CPPL_VERBOSE
30 
32  N =mat.N;
33  Array =mat.Array;
34  Darray =mat.Darray;
35 
36 #ifdef CPPL_DEBUG
37  std::cerr << "# [NOTE] _zhematrix::_zhematrix(const _zhematrix&) "
38  << "A matrix pointing at " << Array
39  << " has been made."
40  << std::endl;
41 #endif//CPPL_DEBUG
42 }
43 
47 
48 //============================================================================
51 {
52 #ifdef CPPL_VERBOSE
53  std::cerr << "# [MARK] _zhematrix::~_zhematrix()"
54  << std::endl;
55 #endif//CPPL_VERBOSE
56 
57 #ifdef CPPL_DEBUG
58  std::cerr << "# [NOTE] _zhematrix::~_zhematrix() "
59  << "A _zhematrix is going to be destructed." << std::endl;
60 #endif//CPPL_DEBUG
61 
63 }
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
std::complex< double > * Array
1D Array to store matrix data
Definition: _zhematrix.hpp:8
~_zhematrix()
Definition: _zhematrix-constructor.hpp:50
long N
matrix column or row size
Definition: _zhematrix.hpp:7