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

◆ lex_compare()

template<class E, bool OC>
int ExponentVector< E, OC >::lex_compare ( int nvars,
ConstExponents a,
ConstExponents b )
inlinestatic

Definition at line 209 of file ExponentVector.hpp.

210 {
211 for (int i = 0; i < nvars; i++)
212 if (a[i] > b[i])
213 return GT;
214 else if (a[i] < b[i])
215 return LT;
216 return EQ;
217 }