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

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

GBRingR
const FreeModuleF

Detailed Description

Index comparator used to permute ReducedGB_Field's gb array into canonical reduced-GB order over a field.

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

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.


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