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

◆ promote()

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

Definition at line 123 of file aring-gf-flint-big.cpp.

126{
127 if (&originalRing() != Rf) return false;
128 std::vector<long> poly;
129 RingElement F(Rf, f);
130 F.getSmallIntegerCoefficients(poly);
132 return true;
133}
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().