sqlite-vec/tests/sqlite-vec-internal.h

13 lines
280 B
C
Raw Normal View History

2024-04-20 13:38:58 -07:00
#include <stdlib.h>
int min_idx(
// list of distances, size n
const float *distances,
// number of entries in distances
int32_t n,
// output array of size k, the indicies of the lowest k values in distances
int32_t *out,
// output number of elements
int32_t k
);