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

◆ operator()() [1/2]

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

Definition at line 277 of file FreeMonoid.hpp.

277 {
278 int hash = V[0];
279 for(auto &i : V) {
280 hash ^= i + 0x9e3779b9 + (hash << 6) + (hash >> 2);
281 }
282 return hash;
283 }