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
pub fn reverse_gradient_ad<F>(
func: F,
x: &ArrayView1<'_, f64>,
) -> Result<Array1<f64>, OptimizeError>
Compute gradient using reverse-mode AD with a function that directly uses AD operations