From 312da845365809555c52df08f2d5e1d1716a9f6a Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 15 Apr 2024 10:47:06 -0700 Subject: [PATCH] Added CPU dispatching for vector cosine distance [skip ci] --- src/vector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vector.c b/src/vector.c index 73ae278..185df27 100644 --- a/src/vector.c +++ b/src/vector.c @@ -653,7 +653,7 @@ vector_negative_inner_product(PG_FUNCTION_ARGS) PG_RETURN_FLOAT8((double) -VectorInnerProduct(a->dim, a->x, b->x)); } -static double +VECTOR_DISPATCH static double VectorCosineSimilarity(int dim, float *ax, float *bx) { float similarity = 0.0;