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

◆ npairs()

template<class E, bool L>
const Exponent ExponentList< E, L >::npairs ( ConstExponents m)
inlinestatic

Definition at line 111 of file ExponentList.hpp.

112 {
113 if constexpr (L)
114 return (*m - 1) / 2;
115 else
116 return *m;
117 }

Referenced by ExponentList< int, true >::is_pure_power().