Struct argmin::core::ArgminIterData
source · [−]pub struct ArgminIterData<O: ArgminOp> { /* private fields */ }
Expand description
The datastructure which is returned by the next_iter
method of the Solver
trait.
TODO: Rename to IterResult?
Implementations
sourceimpl<O: ArgminOp> ArgminIterData<O>
impl<O: ArgminOp> ArgminIterData<O>
sourcepub fn inv_hessian(self, inv_hessian: O::Hessian) -> Self
pub fn inv_hessian(self, inv_hessian: O::Hessian) -> Self
Set inverse Hessian
sourcepub fn termination_reason(self, reason: TerminationReason) -> Self
pub fn termination_reason(self, reason: TerminationReason) -> Self
Set termination reason
sourcepub fn get_hessian(&self) -> Option<O::Hessian>
pub fn get_hessian(&self) -> Option<O::Hessian>
Get Hessian
sourcepub fn get_inv_hessian(&self) -> Option<O::Hessian>
pub fn get_inv_hessian(&self) -> Option<O::Hessian>
Get inverse Hessian
sourcepub fn get_jacobian(&self) -> Option<O::Jacobian>
pub fn get_jacobian(&self) -> Option<O::Jacobian>
Get Jacobian
sourcepub fn get_termination_reason(&self) -> Option<TerminationReason>
pub fn get_termination_reason(&self) -> Option<TerminationReason>
Get termination reason
Trait Implementations
sourceimpl<O: Clone + ArgminOp> Clone for ArgminIterData<O> where
O::Param: Clone,
O::Float: Clone,
O::Param: Clone,
O::Hessian: Clone,
O::Hessian: Clone,
O::Jacobian: Clone,
O::Param: Clone,
O::Float: Clone,
impl<O: Clone + ArgminOp> Clone for ArgminIterData<O> where
O::Param: Clone,
O::Float: Clone,
O::Param: Clone,
O::Hessian: Clone,
O::Hessian: Clone,
O::Jacobian: Clone,
O::Param: Clone,
O::Float: Clone,
sourcefn clone(&self) -> ArgminIterData<O>
fn clone(&self) -> ArgminIterData<O>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<O: Debug + ArgminOp> Debug for ArgminIterData<O> where
O::Param: Debug,
O::Float: Debug,
O::Param: Debug,
O::Hessian: Debug,
O::Hessian: Debug,
O::Jacobian: Debug,
O::Param: Debug,
O::Float: Debug,
impl<O: Debug + ArgminOp> Debug for ArgminIterData<O> where
O::Param: Debug,
O::Float: Debug,
O::Param: Debug,
O::Hessian: Debug,
O::Hessian: Debug,
O::Jacobian: Debug,
O::Param: Debug,
O::Float: Debug,
sourceimpl<O: Default + ArgminOp> Default for ArgminIterData<O> where
O::Param: Default,
O::Float: Default,
O::Param: Default,
O::Hessian: Default,
O::Hessian: Default,
O::Jacobian: Default,
O::Param: Default,
O::Float: Default,
impl<O: Default + ArgminOp> Default for ArgminIterData<O> where
O::Param: Default,
O::Float: Default,
O::Param: Default,
O::Hessian: Default,
O::Hessian: Default,
O::Jacobian: Default,
O::Param: Default,
O::Float: Default,
sourcefn default() -> ArgminIterData<O>
fn default() -> ArgminIterData<O>
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<O> RefUnwindSafe for ArgminIterData<O> where
<O as ArgminOp>::Float: RefUnwindSafe,
<O as ArgminOp>::Hessian: RefUnwindSafe,
<O as ArgminOp>::Jacobian: RefUnwindSafe,
<O as ArgminOp>::Param: RefUnwindSafe,
impl<O> Send for ArgminIterData<O> where
<O as ArgminOp>::Float: Send,
<O as ArgminOp>::Hessian: Send,
<O as ArgminOp>::Jacobian: Send,
<O as ArgminOp>::Param: Send,
impl<O> Sync for ArgminIterData<O> where
<O as ArgminOp>::Float: Sync,
<O as ArgminOp>::Hessian: Sync,
<O as ArgminOp>::Jacobian: Sync,
<O as ArgminOp>::Param: Sync,
impl<O> Unpin for ArgminIterData<O> where
<O as ArgminOp>::Float: Unpin,
<O as ArgminOp>::Hessian: Unpin,
<O as ArgminOp>::Jacobian: Unpin,
<O as ArgminOp>::Param: Unpin,
impl<O> UnwindSafe for ArgminIterData<O> where
<O as ArgminOp>::Float: UnwindSafe,
<O as ArgminOp>::Hessian: UnwindSafe,
<O as ArgminOp>::Jacobian: UnwindSafe,
<O as ArgminOp>::Param: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more