Macaulay2 Engine
Loading...
Searching...
No Matches
◆
copy()
template<class RingType>
virtual
ring_elem
M2::ConcreteRing
< RingType >::copy
(
const
ring_elem
f
)
const
inline
virtual
Implements
Ring
.
Definition at line
303
of file
aring-glue.hpp
.
304
{
305
if
(
displayArithmeticCalls
)
fprintf
(
stderr
,
"calling copy\n"
);
306
const
ElementType
&
a
=
R
->from_ring_elem_const(
f
);
307
Element
b
(*
R
);
308
ring_elem
result
;
309
R
->set(
b
,
a
);
310
R
->to_ring_elem(
result
,
b
);
311
return
result
;
312
}
M2::ConcreteRing::ElementType
RingType::ElementType ElementType
Definition
aring-glue.hpp:75
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
Referenced by
promote()
.
M2
ConcreteRing
Generated on
for Macaulay2 Engine by
1.15.0