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

◆ lcm()

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

Definition at line 195 of file ExponentVector.hpp.

199 {
200 for (int i = nvars; i > 0; i--)
201 {
202 Exponent x = *a++;
203 Exponent y = *b++;
204 *result++ = (x > y ? x : y);
205 }
206 }