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

◆ operator()()

bool sorter::operator() ( int x,
int y )
inline

Definition at line 280 of file montable.cpp.

281 {
282 exponents_t xx = exps[x];
283 exponents_t yy = exps[y];
284 for (int i = 0; i < nvars; i++)
285 if (xx[i] < yy[i])
286 return true;
287 else if (xx[i] > yy[i])
288 return false;
289 if (comps[x] < comps[y])
290 return true;
291 else if (comps[x] > comps[y])
292 return false;
293 return false;
294 }
exponents::Exponents exponents_t
volatile int x
int nvars
Definition montable.cpp:271

References nvars, and x.