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

◆ promote()

bool M2::ARingGFM2::promote ( const Ring * Rf,
const ring_elem f,
elem & result ) const

Definition at line 141 of file aring-m2-gf.cpp.

142{
143 if (&mGF.ring() != Rf) return false;
144
145 std::vector<long> poly;
146 RingElement F(Rf, f);
147 F.getSmallIntegerCoefficients(poly);
149 return true;
150}
void fromSmallIntegerCoefficients(ElementType &result, const std::vector< long > &poly) const
GaloisFieldTable mGF
VALGRIND_MAKE_MEM_DEFINED & result(result)

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