Skip to main content

numeric_hash_rational

Function numeric_hash_rational 

Source
pub fn numeric_hash_rational(r: &Rational) -> u64
Expand description

The unified numeric hash of a Rational: num · den⁻¹ mod P (Fermat inverse; P is prime, and a reduced denominator is never ≡ 0 mod P for representable values).