pub struct SR1TrustRegion<B, R, F> { /* private fields */ }
Expand description
Implementations§
Source§impl<B, R, F: ArgminFloat> SR1TrustRegion<B, R, F>
impl<B, R, F: ArgminFloat> SR1TrustRegion<B, R, F>
Sourcepub fn hessian(self, init_hessian: B) -> Self
pub fn hessian(self, init_hessian: B) -> Self
provide initial Hessian (if not provided, the algorithm will try to compute it using the
hessian
method of ArgminOp
.
Sourcepub fn with_tol_grad(self, tol_grad: F) -> Self
pub fn with_tol_grad(self, tol_grad: F) -> Self
Sets tolerance for the stopping criterion based on the change of the norm on the gradient
Trait Implementations§
Source§impl<B: Clone, R: Clone, F: Clone> Clone for SR1TrustRegion<B, R, F>
impl<B: Clone, R: Clone, F: Clone> Clone for SR1TrustRegion<B, R, F>
Source§fn clone(&self) -> SR1TrustRegion<B, R, F>
fn clone(&self) -> SR1TrustRegion<B, R, F>
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, B, R, F> Deserialize<'de> for SR1TrustRegion<B, R, F>
impl<'de, B, R, F> Deserialize<'de> for SR1TrustRegion<B, R, F>
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<B, R, F> Serialize for SR1TrustRegion<B, R, F>
impl<B, R, F> Serialize for SR1TrustRegion<B, R, F>
Source§impl<O, B, R, F> Solver<O> for SR1TrustRegion<B, R, F>where
O: ArgminOp<Output = F, Hessian = B, Float = F>,
O::Param: Debug + Clone + Default + Serialize + ArgminSub<O::Param, O::Param> + ArgminAdd<O::Param, O::Param> + ArgminDot<O::Param, O::Float> + ArgminDot<O::Param, O::Hessian> + ArgminNorm<O::Float> + ArgminZeroLike + ArgminMul<F, O::Param>,
O::Hessian: Debug + Clone + Default + Serialize + DeserializeOwned + ArgminSub<O::Hessian, O::Hessian> + ArgminDot<O::Param, O::Param> + ArgminDot<O::Hessian, O::Hessian> + ArgminAdd<O::Hessian, O::Hessian> + ArgminMul<F, O::Hessian>,
R: ArgminTrustRegion<F> + Solver<OpWrapper<O>>,
F: ArgminFloat + ArgminNorm<O::Float>,
impl<O, B, R, F> Solver<O> for SR1TrustRegion<B, R, F>where
O: ArgminOp<Output = F, Hessian = B, Float = F>,
O::Param: Debug + Clone + Default + Serialize + ArgminSub<O::Param, O::Param> + ArgminAdd<O::Param, O::Param> + ArgminDot<O::Param, O::Float> + ArgminDot<O::Param, O::Hessian> + ArgminNorm<O::Float> + ArgminZeroLike + ArgminMul<F, O::Param>,
O::Hessian: Debug + Clone + Default + Serialize + DeserializeOwned + ArgminSub<O::Hessian, O::Hessian> + ArgminDot<O::Param, O::Param> + ArgminDot<O::Hessian, O::Hessian> + ArgminAdd<O::Hessian, O::Hessian> + ArgminMul<F, O::Hessian>,
R: ArgminTrustRegion<F> + Solver<OpWrapper<O>>,
F: ArgminFloat + ArgminNorm<O::Float>,
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 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 terminate(&mut self, state: &IterState<O>) -> TerminationReason
fn terminate(&mut self, state: &IterState<O>) -> TerminationReason
Checks whether the algorithm must be terminated
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
Auto Trait Implementations§
impl<B, R, F> Freeze for SR1TrustRegion<B, R, F>
impl<B, R, F> RefUnwindSafe for SR1TrustRegion<B, R, F>
impl<B, R, F> Send for SR1TrustRegion<B, R, F>
impl<B, R, F> Sync for SR1TrustRegion<B, R, F>
impl<B, R, F> Unpin for SR1TrustRegion<B, R, F>
impl<B, R, F> UnwindSafe for SR1TrustRegion<B, R, F>
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