Macaulay2 Engine
Loading...
Searching...
No Matches

◆ operator()()

bool ReducedGB_ZZ_sorter::operator() ( int xx,
int yy )
inline

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

54 {
55 gbvector *x = gb[xx].f;
56 gbvector *y = gb[yy].f;
57 int cmp = R->gbvector_compare(F, x, y);
58 if (cmp == LT) return true;
59 if (cmp == GT) return false;
60 // Now order them in ascending order on the coeff (which should always be
61 // POSITIVE).
62 return (mpz_cmp(x->coeff.get_mpz(), y->coeff.get_mpz()) < 0);
63 }
void gb(IntermediateBasis &F, int n)
volatile int x
const FreeModule * F
ring_elem coeff
Definition gbring.hpp:81
const int GT
Definition style.hpp:41
const int LT
Definition style.hpp:39
mpz_srcptr get_mpz() const
Definition ringelem.hpp:127

References gbvector::coeff, F, gb(), ring_elem::get_mpz(), GT, LT, R, and x.