//=============================================================================
/*! nullify all the matrix data */
inline void _dsymatrix::nullify() const
{
#ifdef CPPL_VERBOSE
std::cerr << "# [MARK] _dsymatrix::nullify() const"
<< std::endl;
#endif//CPPL_VERBOSE
N=0;
Array=NULL;
Darray=NULL;
}
//=============================================================================
/*! destroy all the matrix data */
inline void _dsymatrix::destroy() const
{
#ifdef CPPL_VERBOSE
std::cerr << "# [MARK] _dsymatrix::destroy() const" << std::endl;
std::cerr << "# [NOTE] _dsymatrix::destroy() const" << " An array at " << Array << " is going to be destroyed." << std::endl;
#endif//CPPL_VERBOSE
delete [] Array; Array=NULL;
delete [] Darray; Darray=NULL;
}
//=============================================================================
/*! complete the upper-right components */
inline void _dsymatrix::complete() const
{
#ifdef CPPL_VERBOSE
std::cerr << "# [MARK] _dsymatrix::complete() const"
<< std::endl;
#endif//CPPL_VERBOSE
for(long i=0; i<N; i++){
for(long j=0; j<i; j++){
Darray[i][j] =Darray[j][i];
}
}
}