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

◆ promote()

bool M2::ARingGFFlint::promote ( const Ring * Rf,
const ring_elem f,
ElementType & result ) const

Definition at line 142 of file aring-gf-flint.cpp.

145{
146 if (&originalRing() != Rf) return false;
147 std::vector<long> poly;
148 RingElement F(Rf, f);
149 F.getSmallIntegerCoefficients(poly);
151 return true;
152}
const PolynomialRing & originalRing() const
void fromSmallIntegerCoefficients(ElementType &result, const std::vector< long > &poly) const
VALGRIND_MAKE_MEM_DEFINED & result(result)

References fromSmallIntegerCoefficients(), RingElement::getSmallIntegerCoefficients(), originalRing(), and result().