Ivan Sopin d50211a38f Break distance ties in heap_replace_top() by ID (#2245)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/2245

This changeset makes the `heap_replace_top()` function of the FAISS heap implementation break distance ties by the element's ID, according to the heap's min/max property.

Reviewed By: mdouze

Differential Revision: D34669542

fbshipit-source-id: 0db24fd12442eedeee917fbb3e811ba4a070ce0f
2022-03-09 10:23:48 -08:00
..
2021-12-07 13:12:30 -08:00
2022-02-03 09:44:45 -08:00
2021-12-07 13:12:30 -08:00