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

◆ computeHashValue()

template<class E, bool L>
HashExponent ExponentList< E, L >::computeHashValue ( ConstExponents vp)
inlinestatic

Definition at line 75 of file ExponentList.hpp.

76 {
78 for (Iterator i = vp; i.valid(); ++i)
79 hashval = 4624296 * hashval + 2341 * i.var() + i.exponent();
80 return hashval;
81 }
std::make_unsigned< Exponent >::type HashExponent
ExponentListIterator< E, L > Iterator
static void var(Exponent v, Exponent e, Vector &result)