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

◆ negate()

ring_elem M2FreeAlgebraQuotient::negate ( const ring_elem f) const
virtual

Implements Ring.

Definition at line 199 of file M2FreeAlgebraQuotient.cpp.

200{
201 auto f = reinterpret_cast<const Poly*>(f1.get_Poly());
202 Poly* result = new Poly;
204 return ring_elem(reinterpret_cast<void *>(result));
205}
Polynomial< CoefficientRingType > Poly
void negate(Poly &result, const Poly &f) const
const FreeAlgebraQuotient & freeAlgebraQuotient() const
VALGRIND_MAKE_MEM_DEFINED & result(result)

References freeAlgebraQuotient(), ring_elem::get_Poly(), FreeAlgebraQuotient::negate(), and result().