Macaulay2 Engine
Loading...
Searching...
No Matches
ReducedGB_ZZ_sorter Struct Reference

Index comparator used to permute ReducedGB_ZZ's gb array into canonical reduced-GB order over ZZ. More...

Public Member Functions

const VECTOR (POLY) &gb
 ReducedGB_ZZ_sorter (GBRing *R0, const FreeModule *F0, const VECTOR(POLY) &gb0)
bool operator() (int xx, int yy)

Public Attributes

GBRingR
const FreeModuleF

Detailed Description

Index comparator used to permute ReducedGB_ZZ's gb array into canonical reduced-GB order over ZZ.

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

Captures pointers to the GBRing, target FreeModule, and the gb vector by reference so operator()(a, b) can compare gb[a] and gb[b] by their leading terms (with the integer-coefficient tweaks the ZZ flavour needs to break sign ties consistently). Plugged into std::sort on an indices vector to leave gb untouched until the final permutation is applied.

Definition at line 42 of file reducedgb-ZZ.cpp.


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