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

◆ reduce_exp()

int reduce_exp ( const int * m,
const int * exp )
static

Definition at line 244 of file monideal-minprimes.cpp.

254{
255 int is_one = 1;
256 for (index_varpower i = m; i.valid(); ++i)
257 {
258 if (exp[i.var()] == 1) return 0;
259 if (exp[i.var()] == 0) is_one = 0;
260 }
261 if (is_one) return -1;
262 return 1;
263}
ExponentListIterator< int, true > index_varpower