[][src]Struct argmin::solver::newton::newton_method::Newton

pub struct Newton { /* fields omitted */ }

Newton's method iteratively finds the stationary points of a function f by using a second order approximation of f at the current point.



[0] Jorge Nocedal and Stephen J. Wright (2006). Numerical Optimization. Springer. ISBN 0-387-30303-0.


impl Newton[src]

pub fn new() -> Self[src]


pub fn set_gamma(self, gamma: f64) -> Result<Self, Error>[src]

set gamma

Trait Implementations

impl Default for Newton[src]

impl<O> Solver<O> for Newton where
    O: ArgminOp,
    O::Param: ArgminScaledSub<O::Param, f64, O::Param>,
    O::Hessian: ArgminInv<O::Hessian> + ArgminDot<O::Param, O::Param>, 

fn init(
    &mut self,
    _op: &mut OpWrapper<O>,
    _state: &IterState<O>
) -> Result<Option<ArgminIterData<O>>, Error>

Initializes the algorithm Read more

fn terminate_internal(&mut self, state: &IterState<O>) -> TerminationReason[src]

Checks whether basic termination reasons apply. Read more

fn terminate(&mut self, _state: &IterState<O>) -> TerminationReason[src]

Checks whether the algorithm must be terminated

impl<'de> Deserialize<'de> for Newton[src]

impl Serialize for Newton[src]

Auto Trait Implementations

impl Send for Newton

impl Unpin for Newton

impl Sync for Newton

impl UnwindSafe for Newton

impl RefUnwindSafe for Newton

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized