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

◆ removeLeadTerm()

template<template< typename > class Queue>
void NaivePolynomialHeap< Queue >::removeLeadTerm ( )
inlineoverridevirtual

Implements PolynomialHeap.

Definition at line 467 of file NCReduction.cpp.

468 {
469 if (isZero()) return;
470 assert(mLeadTermSet); // should only be called if mLeadTermSet is true.
471 if (mLeadTermSet)
472 mLeadTermSet = false;
473 }
bool isZero() override

References isZero(), and mLeadTermSet.

Referenced by value().