gvinciguerra / PGM-index

🏅State-of-the-art learned data structure that enables fast lookup, predecessor, range searches and updates in arrays of billions of items using orders of magnitude less space than traditional indexes
https://pgm.di.unipi.it/
Apache License 2.0
775 stars 91 forks source link

Fix an edge case for creating PGM index for floating point types #55

Closed yangzq50 closed 4 months ago

yangzq50 commented 4 months ago

Use std::nextafter to get the next floating point type value. Fix issue #54

gvinciguerra commented 4 months ago

Thanks