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

◆ computeHashValue()

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

Definition at line 84 of file aring-RRi.hpp.

85 {
86 double d = 12347. * mpfr_get_d(&(a.left), MPFR_RNDN) + 865800. * mpfr_get_d(&(a.right), MPFR_RNDN);
87 return static_cast<unsigned int>(d);
88 }