mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-12 07:36:55 +08:00
Added comment [skip ci]
This commit is contained in:
@@ -306,7 +306,10 @@ ElkanKmeans(Relation index, VectorArray samples, VectorArray centers, IvfflatTyp
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (type == IVFFLAT_TYPE_VECTOR)
|
if (type == IVFFLAT_TYPE_VECTOR)
|
||||||
|
{
|
||||||
|
/* Use same centers to save memory */
|
||||||
newCenters = aggCenters;
|
newCenters = aggCenters;
|
||||||
|
}
|
||||||
else if (type == IVFFLAT_TYPE_HALFVEC)
|
else if (type == IVFFLAT_TYPE_HALFVEC)
|
||||||
{
|
{
|
||||||
newCenters = VectorArrayInit(numCenters, dimensions, centers->itemsize);
|
newCenters = VectorArrayInit(numCenters, dimensions, centers->itemsize);
|
||||||
|
|||||||
Reference in New Issue
Block a user