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

◆ compare_elems()

template<class RingType>
virtual int M2::ConcreteRing< RingType >::compare_elems ( const ring_elem f,
const ring_elem g ) const
inlinevirtual

Implements Ring.

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

295 {
296 if (displayArithmeticCalls) fprintf(stderr, "calling compare_elems\n");
297 const ElementType &a = R->from_ring_elem_const(f);
298 const ElementType &b = R->from_ring_elem_const(g);
299 int ret = R->compare_elems(a, b);
300 return ret;
301 }
RingType::ElementType ElementType
std::unique_ptr< RingType > R