Function compute_sparse_gradient

Source
pub fn compute_sparse_gradient<F, S>(
    fun: &F,
    x: &ArrayView1<'_, f64>,
    options: &SparseFiniteDiffOptions,
) -> Result<Array1<f64>, OptimizeError>
where F: Fn(&ArrayView1<'_, f64>) -> S + Clone + Sync, S: Into<f64> + Clone,
Expand description

Compute sparse gradient using sparse numerical differentiation