#include <GKlib.h>
Go to the source code of this file.
Macros | |
#define | QSSWAP(a, b, stmp) do { stmp = (a); (a) = (b); (b) = stmp; } while (0) |
Functions | |
int | gk_dfkvkselect (size_t n, int topk, gk_fkv_t *cand) |
int | gk_ifkvkselect (size_t n, int topk, gk_fkv_t *cand) |
Definition at line 14 of file fkvkselect.c.
This function puts the 'topk' largest values in the beginning of the array
Definition at line 20 of file fkvkselect.c.
This function puts the 'topk' smallest values in the beginning of the array
Definition at line 84 of file fkvkselect.c.