CPPLapack
 All Classes Files Functions Variables Friends Pages
_dsymatrix-misc.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! nullify all the matrix data */
3 inline void _dsymatrix::nullify() const
4 {CPPL_VERBOSE_REPORT;
5  n=0;
6  array=NULL;
7  darray=NULL;
8 }
9 
10 //=============================================================================
11 /*! destroy all the matrix data */
12 inline void _dsymatrix::destroy() const
13 {CPPL_VERBOSE_REPORT;
14  delete [] array;
15  delete [] darray;
16  array=NULL;
17  darray=NULL;
18 }
19 
20 //=============================================================================
21 /*! complete the upper-right components */
22 inline void _dsymatrix::complete() const
23 {CPPL_VERBOSE_REPORT;
24  for(CPPL_INT i=0; i<n; i++){
25  for(CPPL_INT j=0; j<i; j++){
26  darray[i][j] =darray[j][i];
27  }
28  }
29 }
friend _dsymatrix i(const _dsymatrix &)
void destroy() const
double * array
1D array to store matrix data
Definition: _dsymatrix.hpp:12
double ** darray
array of pointers of column head addresses
Definition: _dsymatrix.hpp:13
void complete() const
CPPL_INT n
matrix column size
Definition: _dsymatrix.hpp:11
void nullify() const