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

◆ overlapHeft()

auto NCGroebner::overlapHeft ( Overlap o) const->int

Definition at line 404 of file NCGroebner.cpp.

409{
410 Word tmpL = freeAlgebra().lead_word(*mGroebner[std::get<0>(o)]);
411 Word tmpR = freeAlgebra().lead_word(*mGroebner[std::get<2>(o)]);
412 int len_of_s = tmpL.size() - std::get<1>(o);
413 return freeAlgebra().monoid().wordHeft(tmpL) +
414 freeAlgebra().monoid().wordHeft(tmpR, len_of_s);
415}
Word lead_word(const Poly &f) const
const FreeMonoid & monoid() const
int wordHeft(Word &word) const
PolyList mGroebner
const FreeAlgebra & freeAlgebra() const
int size() const
Definition Word.hpp:74

References freeAlgebra(), mGroebner, and Word::size().

Referenced by insertNewOverlaps().