Macaulay2 Engine
Loading...
Searching...
No Matches
MonomialsWithComponent Class Reference

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 MonomialInfomMonoid

Detailed Description

MonHashTable trait for packed_monomials that include the component coordinate in equality.

Note
AI-generated documentation. Verify against the source before relying on it.

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.


The documentation for this class was generated from the following file: