#include <IceRevisitedRadix.h>
Public Member Functions | |
inline_ udword | GetNbHits () const |
Returns the number of eraly exits due to temporal coherence. More... | |
inline_ udword | GetNbTotalCalls () const |
Returns the total number of calls to the radix sorter. More... | |
inline_ const udword * | GetRanks () const |
Access to results. mRanks is a list of indices in sorted order, i.e. in the order you may further process your data. More... | |
inline_ udword * | GetRecyclable () const |
mIndices2 gets trashed on calling the sort routine, but otherwise you can recycle it the way you want. More... | |
udword | GetUsedRam () const |
RadixSort () | |
RadixSort & | Sort (const udword *input, udword nb, RadixHint hint=RADIX_SIGNED) |
RadixSort & | Sort (const float *input, udword nb) |
~RadixSort () | |
Private Member Functions | |
void | CheckResize (udword nb) |
bool | Resize (udword nb) |
Private Attributes | |
udword | mCurrentSize |
Current size of the indices list. More... | |
udword | mNbHits |
Number of early exits due to coherence. More... | |
udword * | mRanks |
Two lists, swapped each pass. More... | |
udword * | mRanks2 |
udword | mTotalCalls |
Total number of calls to the sort routine. More... | |
Revisited Radix Sort. This is my new radix routine:
it may be worth recoding in asm... (mainly to use FCOMI, FCMOV, etc) [it's probably memory-bound anyway]
History:
\author Pierre Terdiman \version 1.4 \date August, 15, 1998
Definition at line 26 of file IceRevisitedRadix.h.
RadixSort::RadixSort | ( | ) |
RadixSort::~RadixSort | ( | ) |
Returns the number of eraly exits due to temporal coherence.
Definition at line 47 of file IceRevisitedRadix.h.
Returns the total number of calls to the radix sorter.
Definition at line 45 of file IceRevisitedRadix.h.
Access to results. mRanks is a list of indices in sorted order, i.e. in the order you may further process your data.
Definition at line 37 of file IceRevisitedRadix.h.
mIndices2 gets trashed on calling the sort routine, but otherwise you can recycle it the way you want.
Definition at line 40 of file IceRevisitedRadix.h.
udword RadixSort::GetUsedRam | ( | ) | const |
|
private |
|
private |
Current size of the indices list.
Definition at line 54 of file IceRevisitedRadix.h.
|
private |
Number of early exits due to coherence.
Definition at line 59 of file IceRevisitedRadix.h.
|
private |
Two lists, swapped each pass.
Definition at line 55 of file IceRevisitedRadix.h.
|
private |
Definition at line 56 of file IceRevisitedRadix.h.
|
private |
Total number of calls to the sort routine.
Definition at line 58 of file IceRevisitedRadix.h.