From 7710cc8c28c54079114c909fc9cb750ab0e3d2fc Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Thu, 11 Apr 2024 20:34:15 -0700 Subject: [PATCH] Added comments [skip ci] --- src/ivfkmeans.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ivfkmeans.c b/src/ivfkmeans.c index c5409cb..c1f6043 100644 --- a/src/ivfkmeans.c +++ b/src/ivfkmeans.c @@ -528,6 +528,7 @@ ElkanKmeans(Relation index, VectorArray samples, VectorArray centers, IvfflatTyp } } + /* Set new centers if different from agg centers */ if (type == IVFFLAT_TYPE_HALFVEC) { for (int j = 0; j < numCenters; j++) @@ -540,6 +541,7 @@ ElkanKmeans(Relation index, VectorArray samples, VectorArray centers, IvfflatTyp } } + /* Normalize if needed */ if (normprocinfo != NULL) { for (int j = 0; j < numCenters; j++)