Skip to main content

assert_finite

Function assert_finite 

Source
pub fn assert_finite<S, D, F>(
    array: &ArrayBase<S, D>,
    name: &str,
) -> CoreResult<()>
where S: Data<Elem = F>, D: Dimension, F: Float + Display,
Expand description

Assert that every element of the array is finite (not NaN, not Inf).