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

◆ QSSWAP

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

Definition at line 14 of file fkvkselect.c.

Function Documentation

◆ gk_dfkvkselect()

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.

◆ gk_ifkvkselect()

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 Tue Jul 4 2023 02:40:49