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

◆ compare_elems()

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

Definition at line 110 of file aring-zzp.hpp.

111 {
112 int a = exp_table[f];
113 int b = exp_table[g];
114 if (a < b) return -1;
115 if (a > b) return 1;
116 return 0;
117 }

References exp_table.