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

◆ compare_elems()

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

Definition at line 113 of file aring-CCi.hpp.

114 {
115 int cmp = mpfi_cmp(&f.re, &g.re);
116 if (cmp < 0) return -1;
117 if (cmp > 0) return 1;
118 cmp = mpfi_cmp(&f.im, &g.im);
119 if (cmp < 0) return -1;
120 if (cmp > 0) return 1;
121 return 0;
122 }

References cci_struct::im, and cci_struct::re.