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

Combined hash + equality functor for fixed-size monomials, plugged into the std::unordered_set inside MonomialSetFixedSize. More...

#include <monomial-sets.hpp>

Public Member Functions

 MonomialHashAndEqFixedSize (int size)
std::size_t operator() (const int *m) const
bool operator() (const int *a, const int *b) const

Private Attributes

int mMonomialSize

Detailed Description

Combined hash + equality functor for fixed-size monomials, plugged into the std::unordered_set inside MonomialSetFixedSize.

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

Equality is std::equal over mMonomialSize ints; the hash is a TODO stub that returns 0 (so the underlying hash set degenerates to a single bucket and falls back on the equality comparator).

Definition at line 126 of file monomial-sets.hpp.


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