pub trait FunctionC1<D: Dimension>: Function<D> {
    // Required method
    fn gradient(&self, position: &Array<f64, D>) -> Array<f64, D>;
}
Expand description

Defines an objective function f that is able to compute the first derivative f'(x).

Required Methods§

source

fn gradient(&self, position: &Array<f64, D>) -> Array<f64, D>

Computes the gradient of the objective function at a given position x, i.e., ∀ᵢ ∂/∂xᵢ f(x) = ∇f(x).

Implementors§

source§

impl<D: Dimension, S: SummationC1<D>> FunctionC1<D> for S