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

◆ power() [2/2]

ring_elem M2FreeAlgebraQuotient::power ( const ring_elem f,
mpz_srcptr n ) const
virtual

Exponentiation. This is the default function, if a class doesn't define this.

Reimplemented from Ring.

Definition at line 234 of file M2FreeAlgebraQuotient.cpp.

235{
236 auto f = reinterpret_cast<const Poly*>(f1.get_Poly());
237 auto result = new Poly;
239 return ring_elem(reinterpret_cast<void *>(result));
240}
Polynomial< CoefficientRingType > Poly
void power(Poly &result, const Poly &f, int n) const
const FreeAlgebraQuotient & freeAlgebraQuotient() const
VALGRIND_MAKE_MEM_DEFINED & result(result)

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