checkarray_finite

Function checkarray_finite 

Source
pub fn checkarray_finite<S, A, D>(
    array: &ArrayBase<S, D>,
    name: A,
) -> CoreResult<()>
where S: Data, D: Dimension, S::Elem: Float + Display, A: Into<String>,
Expand description

Checks if all values in an array are finite

§Arguments

  • array - The array to check
  • name - The name of the array being checked

§Returns

  • Ok(()) if all values are finite
  • Err(CoreError::ValueError) if any value is not finite

§Errors

Returns CoreError::ValueError if any value in the array is not finite.