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

◆ createOverlapLeadWord()

auto NCGroebner::createOverlapLeadWord ( Poly & wordAsPoly,
Overlap o ) const->void

Definition at line 388 of file NCGroebner.cpp.

389{
390 auto A = freeAlgebra();
391 Poly tmp;
392 Word prefix = A.lead_word_prefix(*mGroebner[std::get<0>(o)], std::get<1>(o));
393 A.lead_term_as_poly(tmp, *mGroebner[std::get<2>(o)]);
394 A.mult_by_term_left(wordAsPoly, tmp, A.coefficientRing()->from_long(1), prefix);
395}
Polynomial< CoefficientRingType > Poly
Word prefix(const Word vec, int lengthOfPrefix)
PolyList mGroebner
const FreeAlgebra & freeAlgebra() const

References freeAlgebra(), mGroebner, and prefix().

Referenced by isOverlapNecessary().