|
Macaulay2 Engine
|
Combined hash + equality functor for (int*, int) pairs, used by the resolution code to key an unordered_set on (monomial, component). More...
#include <betti.hpp>
Public Types | |
| using | value = std::pair<const int*, int> |
Public Member Functions | |
| std::size_t | operator() (value m) const |
| bool | operator() (value a, value b) const |
Combined hash + equality functor for (int*, int) pairs, used by the resolution code to key an unordered_set on (monomial, component).
Hash mixes the raw pointer with 13 * Computations; equality is pointer-and-int equality (the monomials behind the pointers are already interned, so two equal monomials are guaranteed to share the same pointer).