Macaulay2 Engine
Loading...
Searching...
No Matches
◆
divide()
template<class RingType>
virtual
ring_elem
M2::ConcreteRing
< RingType >::divide
(
const
ring_elem
f
,
const
ring_elem
g
) const
inline
virtual
Implements
Ring
.
Definition at line
401
of file
aring-glue.hpp
.
402
{
403
if
(
displayArithmeticCalls
)
fprintf
(
stderr
,
"calling divide\n"
);
404
const
ElementType
&
a
=
R
->from_ring_elem_const(
f
);
405
const
ElementType
&
b
=
R
->from_ring_elem_const(
g
);
406
Element
c
(*
R
);
407
ring_elem
result
;
408
R
->divide(
c
,
a
,
b
);
409
R
->to_ring_elem(
result
,
c
);
410
return
result
;
411
}
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
TEST()
, and
TEST()
.
M2
ConcreteRing
Generated on
for Macaulay2 Engine by
1.15.0