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

◆ add_to_end() [1/2]

void FreeAlgebra::add_to_end ( Poly & f,
const Poly & g ) const

Definition at line 678 of file FreeAlgebra.cpp.

679{
680 if (is_zero(g)) return;
681 auto& outcoeff = f.getCoeffInserter();
682 auto& outmonom = f.getMonomInserter();
683 outcoeff.insert(outcoeff.end(),g.cbeginCoeff(),g.cendCoeff());
684 outmonom.insert(outmonom.end(),g.cbeginMonom(),g.cendMonom());
685}
bool is_zero(const Poly &f) const

References is_zero().

Referenced by TEST(), and NCGroebner::twoSidedReduction().