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

◆ swap()

void FreeAlgebra::swap ( Poly & f,
Poly & g ) const

Definition at line 174 of file FreeAlgebra.cpp.

175{
176 auto& fCoeff = f.getCoeffInserter();
177 auto& fMonom = f.getMonomInserter();
178 auto& gCoeff = g.getCoeffInserter();
179 auto& gMonom = g.getMonomInserter();
180 std::swap(fCoeff,gCoeff);
181 std::swap(fMonom,gMonom);
182}
void swap(mpfr::mpreal &x, mpfr::mpreal &y)
Definition mpreal.h:3244

References std::swap().

Referenced by NCF4::autoreduceByLastElement(), NCGroebner::autoreduceByLastElement(), and FreeAlgebraQuotient::normalizeInPlace().