Function parallel_finite_diff_gradient

Source
pub fn parallel_finite_diff_gradient<F>(
    f: F,
    x: ArrayView1<'_, f64>,
    options: &ParallelOptions,
) -> Array1<f64>
where F: Fn(&ArrayView1<'_, f64>) -> f64 + Sync,
Expand description

Parallel finite difference gradient approximation

Computes the gradient using parallel function evaluations when the dimension is large enough to benefit from parallelization.