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

◆ computeHashValue()

unsigned int M2::ARingGFFlintBig::computeHashValue ( const elem & a) const
inline

Arithmetic functions ///////.

Definition at line 199 of file aring-gf-flint-big.hpp.

200 {
201 unsigned int hash = 0;
202 long deg = nmod_poly_degree(&a);
203 for (long i = 0; i <= deg; i++)
204 hash += static_cast<unsigned int>(nmod_poly_get_coeff_ui(&a, i)) *
205 mPPowers[i];
206 // printf("computing hash value: %ld\n", hash);
207 return hash;
208 }

References mPPowers.