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

◆ updateOverlaps()

void NCGroebner::updateOverlaps ( const Poly * toAdd)

Definition at line 231 of file NCGroebner.cpp.

232{
233 std::vector<Overlap> newOverlaps;
234 Word newLeadWord = freeAlgebra().lead_word(*toAdd);
235
236 // the word table insert places the right overlaps into newOverlaps
237 mWordTable.insert(newLeadWord,newOverlaps);
238 insertNewOverlaps(newOverlaps);
239
240 newOverlaps.clear();
241 // this function finds the left overlaps with the most recently
242 // inserted word.
243 mWordTable.leftOverlaps(newOverlaps);
244 insertNewOverlaps(newOverlaps);
245}
Word lead_word(const Poly &f) const
auto insertNewOverlaps(std::vector< Overlap > &newOverlaps) -> void
const FreeAlgebra & freeAlgebra() const
WordTable mWordTable

References freeAlgebra(), insertNewOverlaps(), FreeAlgebra::lead_word(), and mWordTable.

Referenced by computeHomogeneous(), and computeInhomogeneous().