|
Macaulay2 Engine
|
MonHashTable trait for packed_monomials that include the component coordinate in equality. More...
#include <monhashtable.hpp>
Public Types | |
| typedef packed_monomial | value |
Public Member Functions | |
| long | hash_value (value m) const |
| bool | is_equal (value m, value n) const |
| void | show (value m) const |
| MonomialsWithComponent (const MonomialInfo &MI) | |
Private Attributes | |
| const MonomialInfo & | mMonoid |
MonHashTable trait for packed_monomials that include the component coordinate in equality.
hash_value mixes the leading two ints of the packed monomial (the precomputed hash plus the component) so two monomials with the same exponent vector but different components hash to different buckets. is_equal defers to MonomialInfo::is_equal, which compares both the monomial body and its component.
Definition at line 60 of file monhashtable.hpp.