[][src]Struct liblbfgs::LbfgsState

pub struct LbfgsState<'a, E> where
    E: FnMut(&[f64], &mut [f64]) -> Result<f64>, 
{ /* fields omitted */ }

LBFGS optimization state allowing iterative propagation

Implementations

impl<'a, E> LbfgsState<'a, E> where
    E: FnMut(&[f64], &mut [f64]) -> Result<f64>, 
[src]

pub fn is_converged(&mut self) -> bool[src]

Check if stopping critera met. Panics if not initialized.

pub fn report(&self) -> Report[src]

Report minimization progress. Panics if not initialized yet.

pub fn propagate(&mut self) -> Result<Progress<'_>>[src]

Propagate in next LBFGS step. Return optimization progress on success. Panics if not initialized.

Auto Trait Implementations

impl<'a, E> RefUnwindSafe for LbfgsState<'a, E> where
    E: RefUnwindSafe

impl<'a, E> Send for LbfgsState<'a, E> where
    E: Send

impl<'a, E> Sync for LbfgsState<'a, E> where
    E: Sync

impl<'a, E> Unpin for LbfgsState<'a, E> where
    E: Unpin

impl<'a, E> !UnwindSafe for LbfgsState<'a, E>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.