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

◆ from_double()

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

Reimplemented from Ring.

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

209 {
210 Element a(*R);
211 bool ret = get_from_double(*R, a, q);
212 if (ret) R->to_ring_elem(result, a);
213 return ret;
214 }
std::unique_ptr< RingType > R
RingType::Element Element
bool get_from_double(const RT &R, typename RT::ElementType &a, double b)