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

◆ divides()

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

Definition at line 138 of file ExponentVector.hpp.

139 {
140 // we go upward, because some rings have unused variables at the end
141 for (int i = 0; i < nvars; i++)
142 if (a[i] > b[i]) return false;
143 return true;
144 }