Improved code [skip ci]

This commit is contained in:
Andrew Kane committed 2024-04-24 15:57:29 -07:00
1 parent fb6683ade7
commit cf46c3f651
1 file changed
+1 -3
+1 -3
View File
@@ -287,7 +287,6 @@ BitSumCenter(const void *v, Vector * aggCenter)
static void
SumCenters(VectorArray samples, VectorArray aggCenters, int *closestCenters, IvfflatType type)
{
int numSamples = samples->length;
void (*sumCenter) (const void *v, Vector * aggCenter);
if (type == IVFFLAT_TYPE_VECTOR)
@@ -299,8 +298,7 @@ SumCenters(VectorArray samples, VectorArray aggCenters, int *closestCenters, Ivf
else
elog(ERROR, "Unsupported type");
for (int j = 0; j < numSamples; j++)
for (int j = 0; j < samples->length; j++)
{
Vector *aggCenter = (Vector *) VectorArrayGet(aggCenters, closestCenters[j]);