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

◆ schreyer_compare_encoded()

int SchreyerOrder::schreyer_compare_encoded ( const_monomial m,
int m_comp,
const_monomial n,
int n_comp ) const

Definition at line 356 of file schorder.cpp.

360{
361 int cmp = M->compare(m, n);
362 if (cmp != EQ) return cmp;
363 cmp = compare_num(m_comp) - compare_num(n_comp);
364 if (cmp < 0) return LT;
365 if (cmp > 0) return GT;
366 return EQ;
367}
const Monoid * M
Definition schorder.hpp:69
int compare_num(int i) const
Definition schorder.hpp:90
const int EQ
Definition style.hpp:40
const int GT
Definition style.hpp:41
const int LT
Definition style.hpp:39

References compare_num(), EQ, GT, LT, and M.

Referenced by GBRing::gbvector_compare().