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

◆ initReductionOnly()

auto NCGroebner::initReductionOnly ( ) ->void

Definition at line 334 of file NCGroebner.cpp.

335{
336 // this function clears out mWordTable, places mInput in mGroebner,
337 // and builds the word table.
338 mWordTable.clear();
339 for (auto& f : mInput)
340 {
341 Poly *fCopy = new Poly;
342 freeAlgebra().copy(*fCopy,*f);
343 mGroebner.push_back(fCopy);
344 auto i = f->cbegin();
345 Word tmp;
346 freeAlgebra().monoid().wordFromMonom(tmp,i.monom());
347 mWordTable.insert(tmp);
348 }
349}
Polynomial< CoefficientRingType > Poly
void copy(Poly &result, Poly::const_iterator fBegin, Poly::const_iterator fEnd) const
const FreeMonoid & monoid() const
void wordFromMonom(Word &result, const Monom &m) const
PolyList mGroebner
const FreeAlgebra & freeAlgebra() const
WordTable mWordTable
const ConstPolyList mInput

References freeAlgebra(), mGroebner, mInput, and mWordTable.