pub struct Newton<F> { /* private fields */ }
Expand description
Implementations§
Trait Implementations§
Source§impl<F: ArgminFloat> Default for Newton<F>
impl<F: ArgminFloat> Default for Newton<F>
Source§impl<'de, F> Deserialize<'de> for Newton<F>where
F: Deserialize<'de>,
impl<'de, F> Deserialize<'de> for Newton<F>where
F: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<O, F> Solver<O> for Newton<F>
impl<O, F> Solver<O> for Newton<F>
Source§fn next_iter(
&mut self,
op: &mut OpWrapper<O>,
state: &IterState<O>,
) -> Result<ArgminIterData<O>, Error>
fn next_iter( &mut self, op: &mut OpWrapper<O>, state: &IterState<O>, ) -> Result<ArgminIterData<O>, Error>
Computes one iteration of the algorithm.
Source§fn init(
&mut self,
_op: &mut OpWrapper<O>,
_state: &IterState<O>,
) -> Result<Option<ArgminIterData<O>>, Error>
fn init( &mut self, _op: &mut OpWrapper<O>, _state: &IterState<O>, ) -> Result<Option<ArgminIterData<O>>, Error>
Initializes the algorithm Read more
Source§fn terminate_internal(&mut self, state: &IterState<O>) -> TerminationReason
fn terminate_internal(&mut self, state: &IterState<O>) -> TerminationReason
Checks whether basic termination reasons apply. Read more
Source§fn terminate(&mut self, _state: &IterState<O>) -> TerminationReason
fn terminate(&mut self, _state: &IterState<O>) -> TerminationReason
Checks whether the algorithm must be terminated
Auto Trait Implementations§
impl<F> Freeze for Newton<F>where
F: Freeze,
impl<F> RefUnwindSafe for Newton<F>where
F: RefUnwindSafe,
impl<F> Send for Newton<F>where
F: Send,
impl<F> Sync for Newton<F>where
F: Sync,
impl<F> Unpin for Newton<F>where
F: Unpin,
impl<F> UnwindSafe for Newton<F>where
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more