OpendTect-6_4
6.4
|
Go to the source code of this file.
Classes | |
class | ParallelSorter< T > |
Sorting in parallel. Code is still experimental. More... | |
Macros | |
#define | mDoSort(extra_var, extra_action, sztype) |
#define | mDoSort(extra_var, extra_action, sztype) |
#define | NSMALL 7 |
#define | FM 7875 |
#define | FA 211 |
#define | FC 1663 |
#define | NSTACK 50 |
Functions | |
template<class T , class I > | |
void | sort_array (T *arr, I sz) |
template<class T , class IT , class I > | |
void | sort_coupled (T *arr, IT *idxs, I sz) |
template<class T > | |
void | sort_idxabl (T &arr, int sz) |
template<class T , class IT > | |
void | sort_idxabl_coupled (T &arr, IT *idxs, int sz) |
template<class T , class I > | |
bool | duplicate_sort (T *arr, I sz, int maxnrvals) |
mExtern(Algo) Threads float | getPartSortSeed () |
template<class T , class I > | |
void | partSort (T *arr, I istart, I istop, I *jstart, I *jstop) |
template<class T , class I > | |
void | insertionSort (T *arr, I istart, I istop) |
template<class T , class I > | |
void | sortFor (T *arr, I sz, I itarget) |
template<class T , class I > | |
void | quickSort (T *arr, I sz) |
template<class T , class IT > | |
void | partSort (T *arr, IT *iarr, int istart, int istop, int *jstart, int *jstop) |
template<class T , class IT > | |
void | insertionSort (T *arr, IT *iarr, int istart, int istop) |
template<class T , class IT > | |
void | sortFor (T *arr, IT *iarr, int sz, int itarget) |
template<class T , class IT > | |
void | quickSort (T *arr, IT *iarr, int sz) |
#define FA 211 |
#define FC 1663 |
#define FM 7875 |
#define mDoSort | ( | extra_var, | |
extra_action, | |||
sztype | |||
) |
#define mDoSort | ( | extra_var, | |
extra_action, | |||
sztype | |||
) |
#define NSMALL 7 |
#define NSTACK 50 |
|
inline |
Sorting for data with many duplicates.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
is quicker than sort_array for arrays larger than about 100 values.
|
inline |
|
inline |
sort quickly (algorithm taken from xv).
|
inline |
sort and remember where it was before sorting.
|
inline |
sort quickly (algorithm taken from xv).
|
inline |
sort and remember where it was before sorting.
|
inline |
sorts the array until the 'itarget' element has exactly the right
value. The rest of the array must be considered unsorted after the operation, although it will generally be better sorted.
void sortFor | ( | T * | arr, |
IT * | iarr, | ||
int | sz, | ||
int | itarget | ||
) |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019