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

◆ isZero()

template<template< typename > class Queue>
bool NaiveDedupPolynomialHeap< Queue >::isZero ( )
inlineoverridevirtual

Implements PolynomialHeap.

Definition at line 557 of file NCReduction.cpp.

558 {
559 // idempotent function.
560 while (not mQueue.empty())
561 {
562 Entry e = mQueue.top();
563 if (mRing.coefficientRing()->is_zero(e.second))
564 mQueue.pop();
565 else
566 return false;
567 }
568 return true;
569 }
Queue< NaiveDedupQueueConfiguration > mQueue
NaiveDedupQueueConfiguration::Entry Entry

References mQueue, and mRing.

Referenced by value().