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

◆ from_coefficient()

ring_elem M2FreeAlgebraQuotient::from_coefficient ( const ring_elem a) const
virtual

Implements M2FreeAlgebraOrQuotient.

Definition at line 69 of file M2FreeAlgebraQuotient.cpp.

70{
71 auto result = new Poly;
73 return ring_elem(reinterpret_cast<void *>(result));
74}
Polynomial< CoefficientRingType > Poly
void from_coefficient(Poly &result, const ring_elem a) const
const FreeAlgebraQuotient & freeAlgebraQuotient() const
VALGRIND_MAKE_MEM_DEFINED & result(result)

References freeAlgebraQuotient(), FreeAlgebraQuotient::from_coefficient(), and result().

Referenced by from_int(), from_long(), from_rational(), and promote().