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

◆ normalizeInPlace()

void FreeAlgebraQuotient::normalizeInPlace ( Poly & f) const

Definition at line 24 of file FreeAlgebraQuotient.cpp.

25{
26 // for now, we will simply reduce the poly f and copy the result into f.
27 // TODO: Make this work 'in place'.
28 auto fRed = mGroebner.twoSidedReduction(&f);
29 freeAlgebra().swap(f,*fRed);
30}
void swap(Poly &f, Poly &g) const
const FreeAlgebra & freeAlgebra() const

References freeAlgebra(), mGroebner, and FreeAlgebra::swap().

Referenced by from_coefficient(), from_word(), mult(), power(), power(), M2FreeAlgebraQuotient::promote(), and var().