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

Combined hash + equality functor for (int*, int) pairs, used by the resolution code to key an unordered_set on (monomial, component). More...

#include <betti.hpp>

Public Types

using value = std::pair<const int*, int>

Public Member Functions

std::size_t operator() (value m) const
bool operator() (value a, value b) const

Detailed Description

Combined hash + equality functor for (int*, int) pairs, used by the resolution code to key an unordered_set on (monomial, component).

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

Hash mixes the raw pointer with 13 * Computations; equality is pointer-and-int equality (the monomials behind the pointers are already interned, so two equal monomials are guaranteed to share the same pointer).

Definition at line 107 of file betti.hpp.


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