pub fn reverse_gradient<F>(
func: F,
x: &ArrayView1<'_, f64>,
) -> Result<Array1<f64>, OptimizeError>Expand description
Compute gradient using reverse-mode automatic differentiation This is a generic function that works with closures, using finite differences For functions that can be expressed in terms of AD operations, use reverse_gradient_with_tape