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
inlinevirtual

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);
408 R->divide(c, a, b);
409 R->to_ring_elem(result, c);
410 return result;
411 }
RingType::ElementType ElementType
std::unique_ptr< RingType > R
RingType::Element Element

Referenced by TEST(), and TEST().