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

◆ gcd()

template<class E, bool OC>
void ExponentVector< E, OC >::gcd ( int nvars,
ConstExponents a,
ConstExponents b,
Exponents result )
inlinestatic

Definition at line 181 of file ExponentVector.hpp.

185 {
186 for (int i = nvars; i > 0; i--)
187 {
188 Exponent x = *a++;
189 Exponent y = *b++;
190 *result++ = (x < y ? x : y);
191 }
192 }