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

◆ from_complex_double()

template<class RingType>
virtual bool M2::ConcreteRing< RingType >::from_complex_double ( double re,
double im,
ring_elem & result ) const
inlinevirtual

Reimplemented from Ring.

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

218 {
219 Element a(*R);
220 bool ret = get_from_complex_double(*R, a, re, im);
221 if (ret) R->to_ring_elem(result, a);
222 return ret;
223 }
std::unique_ptr< RingType > R
RingType::Element Element
bool get_from_complex_double(const RT &R, typename RT::ElementType &a, double re, double im)