reverse_gradient_ad

Function reverse_gradient_ad 

Source
pub fn reverse_gradient_ad<F>(
    func: F,
    x: &ArrayView1<'_, f64>,
) -> Result<Array1<f64>, OptimizeError>
Expand description

Compute gradient using reverse-mode AD with a function that directly uses AD operations