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

◆ HeadReduction()

template<typename MonomType>
void BIBasis::Polynom< MonomType >::HeadReduction ( const Polynom< MonomType > & anotherPolynom)

Definition at line 592 of file polynom.hpp.

593 {
595 {
600
601 while (iterator)
602 {
603 if (iterator->IsDivisibleBy(anotherLm))
604 {
605 tmpMonom->SetQuotientOf(*iterator, anotherLm);
607 *tmpPolynom *= *tmpMonom;
609 delete tmpPolynom;
611 }
612 else
613 {
614 break;
615 }
616 }
617 delete tmpMonom;
618 }
619 }
MonomType * MonomListHead
Definition polynom.hpp:53
void MergeWith(Polynom &anotherPolynom)
Definition polynom.hpp:622
const MonomType & Lm() const
Definition polynom.hpp:189

References HeadReduction(), Lm(), MergeWith(), MonomListHead, and Polynom().

Referenced by HeadReduction(), and BIBasis::BooleanInvolutiveBasis< MonomType >::NormalForm().