Menu

[r182]: / trunk / include / _dsymatrix- / _dsymatrix-misc.hpp  Maximize  Restore  History

Download this file

30 lines (27 with data), 752 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//=============================================================================
/*! nullify all the matrix data */
inline void _dsymatrix::nullify() const
{CPPL_VERBOSE_REPORT;
n=0;
array=NULL;
darray=NULL;
}
//=============================================================================
/*! destroy all the matrix data */
inline void _dsymatrix::destroy() const
{CPPL_VERBOSE_REPORT;
delete [] array;
delete [] darray;
array=NULL;
darray=NULL;
}
//=============================================================================
/*! complete the upper-right components */
inline void _dsymatrix::complete() const
{CPPL_VERBOSE_REPORT;
for(long i=0; i<n; i++){
for(long j=0; j<i; j++){
darray[i][j] =darray[j][i];
}
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.