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

◆ isZero()

bool MapPolynomialHeap::isZero ( )
inlineoverridevirtual

Implements PolynomialHeap.

Definition at line 686 of file NCReduction.cpp.

687 {
688 // idempotent function.
689 while (not mMap.empty())
690 {
691 const Entry& e = *(mMap.begin());
692 if (mRing.coefficientRing()->is_zero(e.second))
693 mMap.erase(mMap.begin());
694 else
695 return false;
696 }
697 return true;
698 }
std::pair< Monom, ring_elem > Entry
std::map< Monom, ring_elem, MonomEq, gc_allocator< ConstEntry > > mMap

References mMap, and mRing.

Referenced by value().