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

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

Detailed Description

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

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

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.


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