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

◆ IM2_RingElement_from_Interval()

const RingElement * IM2_RingElement_from_Interval ( const Ring * R,
gmp_RRi z )

Definition at line 84 of file ringelement.cpp.

85{
86 ring_elem f;
87 if (R->from_Interval(z, f)) return RingElement::make_raw(R, f);
88 ERROR("cannot create element of this ring from an element of RRi");
89 return nullptr;
90}
virtual bool from_Interval(gmp_RRi a, ring_elem &result) const
Definition ring.cpp:257
static RingElement * make_raw(const Ring *R, ring_elem f)
Definition relem.cpp:20
const int ERROR
Definition m2-mem.cpp:55

References ERROR, Ring::from_Interval(), and RingElement::make_raw().