Skip to main content

assert_ulp_eq

Function assert_ulp_eq 

Source
pub fn assert_ulp_eq(a: &[f32], b: &[f32], max_ulp: u32)
Expand description

Assert that two f32 slices are equal within the given ULP tolerance.

§Panics

Panics if slices have different lengths or any element pair exceeds the ULP tolerance.