|
Macaulay2 Engine
|
Index comparator used to permute ReducedGB_Field_Local's gb array into canonical reduced-GB order for the local-ring path. More...
Public Member Functions | |
| const | VECTOR (POLY) &gb |
| ReducedGB_Field_Local_sorter (GBRing *R0, const FreeModule *F0, const VECTOR(POLY) &gb0) | |
| bool | operator() (int xx, int yy) |
Public Attributes | |
| GBRing * | R |
| const FreeModule * | F |
| std::vector< int > | degs |
Index comparator used to permute ReducedGB_Field_Local's gb array into canonical reduced-GB order for the local-ring path.
Same shape as ReducedGB_Field_sorter but with an extra degs vector — the local-ring code compares first by heuristic degree (so smaller-degree reducers come earlier) and only breaks ties with the lead-term comparison. Plugged into std::sort on an indices vector.
Definition at line 53 of file reducedgb-field-local.cpp.