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

◆ from_Interval()

template<class RingType>
virtual bool M2::ConcreteRing< RingType >::from_Interval ( gmp_RRi q,
ring_elem & result ) const
inlinevirtual

Reimplemented from Ring.

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

185 {
186 Element a(*R);
187 bool ret = get_from_Interval(*R, a, q);
188 if (ret) R->to_ring_elem(result, a);
189 return ret;
190 }
std::unique_ptr< RingType > R
RingType::Element Element
bool get_from_Interval(const RT &R, typename RT::ElementType &a, gmp_RRi b)