My Project
_dssmatrix-constructor.hpp
1 //============================================================================
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] _dssmatrix::_dssmatrix()"
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] _dssmatrix::_dssmatrix() "
18  << "A new 0x0 matrix at " << Array
19  << " has been made." << std::endl;
20 #endif//CPPL_DEBUG
21 }
22 
23 //============================================================================
25 inline _dssmatrix::_dssmatrix(const _dssmatrix& mat)
26 {
27 #ifdef CPPL_VERBOSE
28  std::cerr << "# [MARK] _dssmatrix::_dssmatrix(const _dssmatrix&)"
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] _dssmatrix::_dssmatrix(const _dssmatrix&) "
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] _dssmatrix::~_dssmatrix()"
56  << std::endl;
57 #endif//CPPL_VERBOSE
58 
59 #ifdef CPPL_DEBUG
60  std::cerr << "# [NOTE] _dssmatrix::~_dssmatrix() "
61  << "A _dssmatrix is going to be destructed." << std::endl;
62 #endif//CPPL_DEBUG
63 
65 }
double * Array
1D array to store non-zero matrix data
Definition: _dssmatrix.hpp:11
(DO NOT USE) Smart-temporary Real Double-precision Sparse Matrix Class
Definition: _dssmatrix.hpp:3
long M
matrix row size
Definition: _dssmatrix.hpp:7
long CAP
the length of data arrays
Definition: _dssmatrix.hpp:9
_dssmatrix()
Definition: _dssmatrix-constructor.hpp:3
~_dssmatrix()
Definition: _dssmatrix-constructor.hpp:52
long * Jndx
1D array to store the j-index of non-zero matrix components
Definition: _dssmatrix.hpp:13
long VOL
the number of non-zero components
Definition: _dssmatrix.hpp:10
long N
matrix column size
Definition: _dssmatrix.hpp:8
long * Indx
1D array to store the i-index of non-zero matrix components
Definition: _dssmatrix.hpp:12