|
Macaulay2 Engine
|
Combined hash + equality functor for variable-size monomials, plugged into the std::unordered_set inside MonomialSetVarSize. More...
#include <monomial-sets.hpp>
Public Member Functions | |
| MonomialHashAndEqVarSize () | |
| std::size_t | operator() (const int *m) const |
| bool | operator() (const int *a, const int *b) const |
Combined hash + equality functor for variable-size monomials, plugged into the std::unordered_set inside MonomialSetVarSize.
Reads the leading int of each monomial as its length, then compares the two ranges with std::equal. The hash is the same TODO stub that returns 0 as in the fixed-size variant.
Definition at line 161 of file monomial-sets.hpp.