Menu

[r108]: / trunk / include / _dgematrix- / _dgematrix-misc.hpp  Maximize  Restore  History

Download this file

28 lines (24 with data), 788 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
//=============================================================================
/*! nullify all the matrix data */
inline void _dgematrix::nullify() const
{
#ifdef CPPL_VERBOSE
std::cerr << "# [MARK] _dgematrix::nullify() const"
<< std::endl;
#endif//CPPL_VERBOSE
M=0;
N=0;
Array=NULL;
Darray=NULL;
}
//=============================================================================
/*! destroy all the matrix data */
inline void _dgematrix::destroy() const
{
#ifdef CPPL_VERBOSE
std::cerr << "# [MARK] _dgematrix::destroy() const" << std::endl;
std::cerr << "# [NOTE] _dgematrix::destroy() " << " An array at " << Array << " is going to be destroyed." << std::endl;
#endif//CPPL_VERBOSE
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.