|
Macaulay2 Engine
|
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 | |
| GBRing * | R |
| const FreeModule * | F |
Index comparator used to permute ReducedGB_ZZ's gb array into canonical reduced-GB order over ZZ.
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.