VERB_code_2.3
_dsymatrix-misc.hpp
1 //=============================================================================
3 inline void _dsymatrix::destroy() const
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] _dsymatrix::destroy() const"
7  << std::endl;
8 #endif//CPPL_VERBOSE
9 
10 #ifdef CPPL_DEBUG
11  std::cerr << "# [NOTE] _dsymatrix::destroy() "
12  << " An array at " << Array
13  << " is going to be destroyed." << std::endl;
14 #endif//CPPL_DEBUG
15 
16  delete [] Array;
17  delete [] Darray;
18 }
19 
20 //=============================================================================
22 inline void _dsymatrix::complete() const
23 {
24 #ifdef CPPL_VERBOSE
25  std::cerr << "# [MARK] _dsymatrix::complete() const"
26  << std::endl;
27 #endif//CPPL_VERBOSE
28 
29  for(long i=0; i<N; i++){
30  for(long j=0; j<i; j++){
31  Darray[i][j] =Darray[j][i];
32  }
33  }
34 }
35 
double * Array
1D Array to store matrix data
Definition: _dsymatrix.hpp:8
void destroy() const
Definition: _dsymatrix-misc.hpp:3
friend _dgematrix i(const _dsymatrix &)
Definition: _dsymatrix-calc.hpp:21
long N
matrix column or row size
Definition: _dsymatrix.hpp:7
void complete() const
Definition: _dsymatrix-misc.hpp:22
double ** Darray
array of pointers of column head addresses
Definition: _dsymatrix.hpp:9