mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 16:56:27 +02:00
12 lines
280 B
C
12 lines
280 B
C
#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
|
|
);
|