conspire::math::optimize

Trait FirstOrder

Source
pub trait FirstOrder<X: Tensor> {
    // Required method
    fn minimize(
        &self,
        jacobian: impl Fn(&X) -> Result<X, OptimizeError>,
        initial_guess: X,
        dirichlet: Option<Dirichlet<'_>>,
        neumann: Option<Neumann<'_>>,
    ) -> Result<X, OptimizeError>;
}
Expand description

First-order optimization algorithms.

Required Methods§

Source

fn minimize( &self, jacobian: impl Fn(&X) -> Result<X, OptimizeError>, initial_guess: X, dirichlet: Option<Dirichlet<'_>>, neumann: Option<Neumann<'_>>, ) -> Result<X, OptimizeError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§