yahoojapan / NGT

Nearest Neighbor Search with Neighborhood Graph and Tree for High-dimensional Data
Apache License 2.0
1.24k stars 114 forks source link

One Bug #164

Open Heccc257 opened 2 months ago

Heccc257 commented 2 months ago

NGT/lib/NGT/NGTQ/Quantizer.h:3506 The "if" code block should be included within the "for" loop above.

for (size_t ld = 0; ld < localDimension; ld++) { xxx if (localDistance < min[idx * localCodebookNo + svi].first){ xx } }