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

◆ choose_pair()

gbA::spairs::iterator gbA::choose_pair ( spairs::iterator first,
spairs::iterator next )
private

Definition at line 683 of file gb-default.cpp.

685{
686 /* a is an array of spair's, and a[first], ..., a[next-1] all have the
687 same lcm, which is a minimal monomial generator of all such lcm's.
688 Our goal is to choose a nice one, and throw away the others.
689 We return one spair, and delete the rest.
690 */
691 if (next == first + 1) return first;
692 return first; /* MES: really do something here... */
693}

Referenced by minimalize_pairs_non_ZZ().