mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 00:36:56 +02:00
Initial commit
This commit is contained in:
commit
4c8ad629e0
28 changed files with 6758 additions and 0 deletions
12
tests/sqlite-vec-internal.h
Normal file
12
tests/sqlite-vec-internal.h
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#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
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue