pub fn assert_none_is_nan<T>(a: &[T], msg: &str)where
    T: Float,
Expand description

Asserts that no element of an array is NaN

Arguments

  • a an array of floating-point numbers
  • msg error name

Panics

This function will panic if any element of the given array is NaN