My Project
_dgematrix-constructor.hpp
1 //============================================================================
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] _dgematrix::_dgematrix()"
7  << std::endl;
8 #endif//CPPL_VERBOSE
9 
11  M =0;
12  N =0;
13  Array =NULL;
14  Darray =NULL;
15 
16 #ifdef CPPL_DEBUG
17  std::cerr << "# [NOTE] _dgematrix::_dgematrix() "
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] _dgematrix::_dgematrix(const _dgematrix&)"
29  << std::endl;
30 #endif//CPPL_VERBOSE
31 
33  M =mat.M;
34  N =mat.N;
35  Array =mat.Array;
36  Darray =mat.Darray;
37 
38 #ifdef CPPL_DEBUG
39  std::cerr << "# [NOTE] _dgematrix::_dgematrix(const _dgematrix&) "
40  << "A matrix pointing at " << Array << " has been made."
41  << std::endl;
42 #endif//CPPL_DEBUG
43 }
44 
48 
49 //============================================================================
52 {
53 #ifdef CPPL_VERBOSE
54  std::cerr << "# [MARK] _dgematrix::~_dgematrix()"
55  << std::endl;
56 #endif//CPPL_VERBOSE
57 
58 #ifdef CPPL_DEBUG
59  std::cerr << "# [NOTE] _dgematrix::~_dgematrix() "
60  << "A _dgematrix is going to be destructed." << std::endl;
61 #endif//CPPL_DEBUG
62 }
double ** Darray
array of pointers of column head addresses
Definition: _dgematrix.hpp:10
_dgematrix()
Definition: _dgematrix-constructor.hpp:3
(DO NOT USE) Smart-temporary Real Double-precision General Dence Matrix Class
Definition: _dgematrix.hpp:3
long N
matrix column size
Definition: _dgematrix.hpp:8
double * Array
1D array to store matrix data
Definition: _dgematrix.hpp:9
~_dgematrix()
Definition: _dgematrix-constructor.hpp:51
long M
matrix row size
Definition: _dgematrix.hpp:7