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

◆ alg1_reduce_exp()

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

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

86{
87 int is_one = 1;
88 while (*m != 0)
89 {
90 if (exp[*m] == 1) return 0;
91 if (exp[*m] == 0) is_one = 0;
92 m++;
93 }
94 if (is_one) return -1;
95 return 1;
96}

Referenced by MinimalPrimes::alg1_min_prime_generator().