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
inline
virtual
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
970
ElementType
a
;
971
bool
retval
=
R
->promote(
Rf
,
f
,
a
);
972
R
->to_ring_elem(
result
,
a
);
973
return
retval
;
974
}
M2::ConcreteRing::ElementType
RingType::ElementType ElementType
Definition
aring-glue.hpp:75
M2::ConcreteRing::R
std::unique_ptr< RingType > R
Definition
aring-glue.hpp:66
M2::ConcreteRing
Definition
aring-glue.hpp:65
M2
ConcreteRing
Generated on
for Macaulay2 Engine by
1.15.0