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

◆ compare_elems()

int M2::ARingRRR::compare_elems ( const ElementType & f,
const ElementType & g ) const
inline

Definition at line 102 of file aring-RRR.hpp.

103 {
104 int cmp = mpfr_cmp(&f, &g);
105 if (cmp < 0) return -1;
106 if (cmp > 0) return 1;
107 return 0;
108 }

Referenced by DMatLUinPlace< RingType >::findPivot().