Trait Function1

Source
pub trait Function1: Function {
    // Required method
    fn gradient(&self, position: &[f64]) -> Vec<f64>;
}
Expand description

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

Required Methods§

Source

fn gradient(&self, position: &[f64]) -> Vec<f64>

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

Implementors§