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

◆ compare()

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

Definition at line 266 of file NCReduction.cpp.

267 {
268 int cmp = mRing.monoid().compare(a.first, b.first);
269 if (cmp == LT) return CompareResult::LT;
270 if (cmp == GT) return CompareResult::GT;
271 if (cmp == EQ) return CompareResult::EQ;
272
273 std::cout << "Unexpected monomial comparison error in heap." << std::endl << std::flush;
275 }
const FreeAlgebra & mRing

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