|
template<class T > |
T * | jkqtpArrayDuplicate (const T *dataIn, long long N) |
| duplicate an array of data
|
|
template<class T > |
void | jkqtpArraySwap (T *a, long long l, long long r) |
| swap two elements l and r in an array a
|
|
template<class T > |
void | jkqtpArraySwapV (std::vector< T > &a, long long l, long long r) |
| swap two elements l and r in an array a
|
|
Functions in this group form the basis for the statistics (Statistical Computations ) and linear algebra libraries (Linear Algebra Tools ), by providing allocation and freeing of (aligned) memory arrays.
- See also
- JKQTPlotterBasicJKQTPDatastoreStatistics
◆ jkqtpArrayDuplicate()
template<class T >
T * jkqtpArrayDuplicate |
( |
const T * |
dataIn, |
|
|
long long |
N |
|
) |
| |
|
inline |
duplicate an array of data
- Note
- use free() to free the memory!!!
◆ jkqtpArraySwap()
template<class T >
void jkqtpArraySwap |
( |
T * |
a, |
|
|
long long |
l, |
|
|
long long |
r |
|
) |
| |
|
inline |
swap two elements l and r in an array a
◆ jkqtpArraySwapV()
template<class T >
void jkqtpArraySwapV |
( |
std::vector< T > & |
a, |
|
|
long long |
l, |
|
|
long long |
r |
|
) |
| |
|
inline |
swap two elements l and r in an array a