finitediff::vec::diff

Function central_diff_vec

Source
pub fn central_diff_vec<F>(
    x: &[F],
    f: &'_ dyn Fn(&Vec<F>) -> Result<F, Error>,
) -> Result<Vec<F>, Error>
where F: Float + FromPrimitive,