Skip to main content

max_ulp_distance

Function max_ulp_distance 

Source
pub fn max_ulp_distance<T: UlpFloat>(
    a: impl IntoIterator<Item = T>,
    b: impl IntoIterator<Item = T>,
) -> (u64, Option<usize>)
Expand description

Largest ULP distance over two sequences, with the index where it occurs.

Iteration stops at the shorter of the two; callers are expected to have checked the shapes already. Returns (0, None) when nothing was compared.