|
Macaulay2 Engine
|
Index comparator used to permute ReducedGB_Field's gb array into canonical reduced-GB order over a field. More...
Public Member Functions | |
| const | VECTOR (POLY) &gb |
| ReducedGB_Field_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_Field's gb array into canonical reduced-GB order over a field.
operator()(a, b) compares gb[a] and gb[b] by lead term through the GBRing, returning true when a should come first. Plugged into std::sort on an indices vector to leave gb untouched until the final permutation is applied.
Definition at line 26 of file reducedgb-field.cpp.