From 7e1107b1eef4f21558f29b34ae0ab20897c7eb05 Mon Sep 17 00:00:00 2001 From: julian Date: Fri, 30 Oct 2020 17:16:41 +0100 Subject: [PATCH] Use robinhood::hash function instead of std::hash Signed-off-by: julian --- ripser/ripser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ripser/ripser.cpp b/ripser/ripser.cpp index 73a3a42..f2b7531 100644 --- a/ripser/ripser.cpp +++ b/ripser/ripser.cpp @@ -526,7 +526,11 @@ class ripser struct entry_hash { std::size_t operator()(const entry_t& e) const { +#if defined(USE_ROBINHOOD_HASHMAP) + return robin_hood::hash()(::get_index(e)); +#else return std::hash()(::get_index(e)); +#endif } };