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

◆ promote() [3/4]

bool M2::ConcreteRing< ARingGFM2 >::promote ( const Ring * Rf,
const ring_elem f,
ring_elem & result ) const
inlinevirtual

Implements Ring.

Definition at line 963 of file aring-glue.hpp.

966{
967 // Rf = Z/p[x]/F(x) ---> GF(p,n)
968 // promotion: need to be able to know the value of 'x'.
969 // lift: need to compute (primite_element)^e
971 bool retval = R->promote(Rf, f, a);
972 R->to_ring_elem(result, a);
973 return retval;
974}
RingType::ElementType ElementType
std::unique_ptr< RingType > R