VERB_code_2.3
_zssmatrix-constructor.hpp
1 //============================================================================
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] _zssmatrix::_zssmatrix()"
7  << std::endl;
8 #endif//CPPL_VERBOSE
9 
11  M =N =0;
12  CAP =VOL =0;
13  Array =NULL;
14  Indx =Jndx =NULL;
15 
16 #ifdef CPPL_DEBUG
17  std::cerr << "# [NOTE] _zssmatrix::_zssmatrix() "
18  << "A new 0x0 matrix at " << Array
19  << " has been made." << std::endl;
20 #endif//CPPL_DEBUG
21 }
22 
23 //============================================================================
26 {
27 #ifdef CPPL_VERBOSE
28  std::cerr << "# [MARK] _zssmatrix::_zssmatrix(const _zssmatrix&)"
29  << std::endl;
30 #endif//CPPL_VERBOSE
31 
33  M =mat.M; N =mat.N;
34  CAP =mat.CAP;
35  VOL =mat.VOL;
36  Array =mat.Array;
37  Indx =mat.Indx;
38  Jndx =mat.Jndx;
39 
40 #ifdef CPPL_DEBUG
41  std::cerr << "# [NOTE] _zssmatrix::_zssmatrix(const _zssmatrix&) "
42  << "A matrix pointing at " << Array << " has been made.";
43 #endif//CPPL_DEBUG
44 }
45 
49 
50 //============================================================================
53 {
54 #ifdef CPPL_VERBOSE
55  std::cerr << "# [MARK] _zssmatrix::~_zssmatrix()"
56  << std::endl;
57 #endif//CPPL_VERBOSE
58 
59 #ifdef CPPL_DEBUG
60  std::cerr << "# [NOTE] _zssmatrix::~_zssmatrix() "
61  << "A _zssmatrix is going to be destructed." << std::endl;
62 #endif//CPPL_DEBUG
63 
65 }
long M
matrix row size
Definition: _zssmatrix.hpp:7
long VOL
the number of non-zero components
Definition: _zssmatrix.hpp:10
(DO NOT USE) Smart-temporary Complex Double-precision Sparse Matrix Class
Definition: _zssmatrix.hpp:3
_zssmatrix()
Definition: _zssmatrix-constructor.hpp:3
~_zssmatrix()
Definition: _zssmatrix-constructor.hpp:52
long * Jndx
1D array to store the j-index of non-zero matrix components
Definition: _zssmatrix.hpp:13
long CAP
the length of data arrays
Definition: _zssmatrix.hpp:9
std::complex< double > * Array
1D array to store non-zero matrix data
Definition: _zssmatrix.hpp:11
long N
matrix column size
Definition: _zssmatrix.hpp:8
long * Indx
1D array to store the i-index of non-zero matrix components
Definition: _zssmatrix.hpp:12