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

◆ operator()() [2/2]

int MonomHash::operator() ( const Word & V) const
inline

Definition at line 284 of file FreeMonoid.hpp.

284 {
285 int hash = V.begin()[0];
286 for(auto &i : V) {
287 hash ^= i + 0x9e3779b9 + (hash << 6) + (hash >> 2);
288 }
289 return hash;
290 }
const int * begin() const
Definition Word.hpp:72

References Word::begin().