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

◆ compare()

CompareResult NaiveDedupQueueConfiguration::compare ( const Entry & a,
const Entry & b ) const
inline

Definition at line 322 of file NCReduction.cpp.

323 {
324 int cmp = mRing.monoid().compare(a.first, b.first);
325 if (cmp == LT) return CompareResult::LT;
326 if (cmp == GT) return CompareResult::GT;
327 if (cmp == EQ) return CompareResult::EQ;
328
329 std::cout << "Unexpected monomial comparison error in heap." << std::endl << std::flush;
331 }
const FreeAlgebra & mRing

References EQ, EQ, Error, GT, GT, LT, LT, and mRing.