Added SIMD version of cosine distance

This commit is contained in:
Andrew Kane
2024-04-15 10:01:05 -07:00
parent 2d33e95a73
commit 55845bfd5f
3 changed files with 78 additions and 18 deletions

View File

@@ -12,6 +12,7 @@
extern float (*HalfvecL2SquaredDistance) (int dim, half * ax, half * bx);
extern float (*HalfvecInnerProduct) (int dim, half * ax, half * bx);
extern double (*HalfvecCosineSimilarity) (int dim, half * ax, half * bx);
void HalfvecInit(void);