pub fn assert_is_finite_array<T>(a: &[T], msg: &str)where T: Float + Display,
Asserts that all elements in a given array are finite
a
msg
This function panics if there is at least one element in the given array which is not finite