Skip to main content

jacobian_2_point

Function jacobian_2_point 

Source
pub fn jacobian_2_point<T>(
    f: &T,
    x: &[f64],
    step_size: Option<f64>,
) -> Result<Vec<Vec<f64>>, ErrorsJSL>
where T: Fn(&[f64]) -> Vec<f64>,
Expand description

The Jacobian ∂fᵢ/∂xⱼ of a vector-valued function by central differences (2n + 1 evaluations); row i is the gradient of component i.

step_size is relative, with default h = ε^{1/3}.