Macros | Functions
fkvkselect.c File Reference
#include <GKlib.h>
Include dependency graph for fkvkselect.c:

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)
 

Macro Definition Documentation

#define QSSWAP (   a,
  b,
  stmp 
)    do { stmp = (a); (a) = (b); (b) = stmp; } while (0)

Definition at line 14 of file fkvkselect.c.

Function Documentation

int gk_dfkvkselect ( size_t  n,
int  topk,
gk_fkv_t *  cand 
)

This function puts the 'topk' largest values in the beginning of the array

Definition at line 20 of file fkvkselect.c.

int gk_ifkvkselect ( size_t  n,
int  topk,
gk_fkv_t *  cand 
)

This function puts the 'topk' smallest values in the beginning of the array

Definition at line 84 of file fkvkselect.c.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:29