hash of mpz_t and mpq_t
Torbjörn Granlund
tg at gmplib.org
Tue Jun 15 08:25:07 UTC 2021
Mathieu Dutour <mathieu.dutour at gmail.com> writes:
would it be possible to have a hash function defined on
GMP integers and rationals?
This would be useful for building hash tables using gmp numeric.
For mpz_t, have you considered using mpz_export to a byte vector and
then hash that?
And for mpq_t, the numref and denref with mpz_export?
--
Torbjörn
Please encrypt, key id 0xC8601622
More information about the gmp-discuss
mailing list