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

◆ computeHashValue()

unsigned int M2::ARingCCC::computeHashValue ( const ElementType & a) const
inline

Definition at line 92 of file aring-CCC.hpp.

93 {
94 double a1 = mpfr_get_d(&a.re, MPFR_RNDN);
95 double b1 = mpfr_get_d(&a.im, MPFR_RNDN);
96 return static_cast<unsigned int>(12347. * a1 + 865800. * b1);
97 }

References cc_struct::im, and cc_struct::re.