pub struct SteepestDescent<L> { /* private fields */ }
Expand description
Implementations§
Source§impl<L> SteepestDescent<L>
impl<L> SteepestDescent<L>
Trait Implementations§
Source§impl<L: Clone> Clone for SteepestDescent<L>
impl<L: Clone> Clone for SteepestDescent<L>
Source§fn clone(&self) -> SteepestDescent<L>
fn clone(&self) -> SteepestDescent<L>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de, L> Deserialize<'de> for SteepestDescent<L>where
L: Deserialize<'de>,
impl<'de, L> Deserialize<'de> for SteepestDescent<L>where
L: 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<L> Serialize for SteepestDescent<L>where
L: Serialize,
impl<L> Serialize for SteepestDescent<L>where
L: Serialize,
Source§impl<O, L, F> Solver<O> for SteepestDescent<L>where
O: ArgminOp<Output = F, Float = F>,
O::Param: Clone + Default + Serialize + ArgminSub<O::Param, O::Param> + ArgminDot<O::Param, O::Float> + ArgminScaledAdd<O::Param, O::Float, O::Param> + ArgminMul<O::Float, O::Param> + ArgminNorm<O::Float>,
O::Hessian: Default,
L: Clone + ArgminLineSearch<O::Param, O::Float> + Solver<OpWrapper<O>>,
F: ArgminFloat,
impl<O, L, F> Solver<O> for SteepestDescent<L>where
O: ArgminOp<Output = F, Float = F>,
O::Param: Clone + Default + Serialize + ArgminSub<O::Param, O::Param> + ArgminDot<O::Param, O::Float> + ArgminScaledAdd<O::Param, O::Float, O::Param> + ArgminMul<O::Float, O::Param> + ArgminNorm<O::Float>,
O::Hessian: Default,
L: Clone + ArgminLineSearch<O::Param, O::Float> + Solver<OpWrapper<O>>,
F: ArgminFloat,
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<L> Freeze for SteepestDescent<L>where
L: Freeze,
impl<L> RefUnwindSafe for SteepestDescent<L>where
L: RefUnwindSafe,
impl<L> Send for SteepestDescent<L>where
L: Send,
impl<L> Sync for SteepestDescent<L>where
L: Sync,
impl<L> Unpin for SteepestDescent<L>where
L: Unpin,
impl<L> UnwindSafe for SteepestDescent<L>where
L: 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