Menu

[r31]: / trunk / include / _dgbmatrix- / _dgbmatrix-misc.hpp  Maximize  Restore  History

Download this file

36 lines (31 with data), 886 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
30
31
32
33
34
35
//=============================================================================
/*! nullify all the matrix data */
inline void _dgbmatrix::nullify() const
{
#ifdef CPPL_VERBOSE
std::cerr << "# [MARK] _dgbmatrix::nullify() const"
<< std::endl;
#endif//CPPL_VERBOSE
M=0;
N=0;
KL=0;
KU=0;
Array=NULL;
Darray=NULL;
}
//=============================================================================
/*! destroy all the matrix data */
inline void _dgbmatrix::destroy() const
{
#ifdef CPPL_VERBOSE
std::cerr << "# [MARK] _dgbmatrix::destroy() const"
<< std::endl;
#endif//CPPL_VERBOSE
#ifdef CPPL_DEBUG
std::cerr << "# [NOTE] _dgbmatrix::destroy() const"
<< " An array at " << Array
<< " is going to be cleared." << std::endl;
#endif//CPPL_DEBUG
delete [] Array; Array=NULL;
delete [] Darray; Darray=NULL;
}
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.