pub fn check_finite(name: &'static str, value: f64) -> Result<()>
Assert that a value is finite (not NaN, not infinite).