Skip to content

Commit

Permalink
Use robinhood::hash function instead of std::hash
Browse files Browse the repository at this point in the history
Signed-off-by: julian <[email protected]>
  • Loading branch information
julian committed Oct 30, 2020
1 parent 212066a commit 7e1107b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ripser/ripser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<index_t>()(::get_index(e));
#else
return std::hash<index_t>()(::get_index(e));
#endif
}
};

Expand Down

0 comments on commit 7e1107b

Please sign in to comment.