Menu

[r193]: / trunk / include / _zhematrix- / _zhematrix-misc.hpp  Maximize  Restore  History

Download this file

31 lines (27 with data), 772 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 _zhematrix::nullify() const
{CPPL_VERBOSE_REPORT;
n=0;
array=NULL;
darray=NULL;
}
//=============================================================================
/*! destroy all the matrix data */
inline void _zhematrix::destroy() const
{CPPL_VERBOSE_REPORT;
delete [] array;
delete [] darray;
array=NULL;
darray=NULL;
}
//=============================================================================
/*! complete the upper-right components */
inline void _zhematrix::complete() const
{CPPL_VERBOSE_REPORT;
for(CPPL_INT i=0; i<n; i++){
for(CPPL_INT j=0; j<i; j++){
darray[i][j] =std::conj(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.