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

Asserts that all elements in a given array are finite

Arguments

  • a given array of floating-point numbers
  • msg error message

Panics

This function panics if there is at least one element in the given array which is not finite