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

◆ IM2_RingElement_from_ComplexInterval()

const RingElement * IM2_RingElement_from_ComplexInterval ( const Ring * R,
gmp_CCi z )

Definition at line 92 of file ringelement.cpp.

93{
94 ring_elem f;
95 if (R->from_ComplexInterval(z, f)) return RingElement::make_raw(R, f);
96 ERROR("cannot create element of this ring from an element of CCi");
97 return nullptr;
98}
virtual bool from_ComplexInterval(gmp_CCi z, ring_elem &result) const
Definition ring.cpp:264
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_ComplexInterval(), and RingElement::make_raw().