Macaulay2 Engine
Loading...
Searching...
No Matches
◆
from_double()
template<class RingType>
virtual
bool
M2::ConcreteRing
< RingType >::from_double
(
double
q
,
ring_elem
&
result
) const
inline
virtual
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
}
M2::ConcreteRing::R
std::unique_ptr< RingType > R
Definition
aring-glue.hpp:66
M2::ConcreteRing::Element
RingType::Element Element
Definition
aring-glue.hpp:76
M2::ConcreteRing
Definition
aring-glue.hpp:65
M2::get_from_double
bool get_from_double(const RT &R, typename RT::ElementType &a, double b)
Definition
aring-translate.hpp:101
M2
ConcreteRing
Generated on
for Macaulay2 Engine by
1.15.0