pub struct LmIterate<'a> {
pub iter: usize,
pub x: &'a [Number],
pub c: &'a [Number],
pub step_inf_norm: Number,
pub lambda: Number,
pub accepted: bool,
}Expand description
One iterate of the LM, as handed to LmHooks::on_iterate.
Fields§
§iter: usizeIteration index: 0 is the (projected) start, k the iterate after
the k-th step — accepted or not; a rejected step leaves x as it
was and reports accepted = false.
x: &'a [Number]§c: &'a [Number]§step_inf_norm: Number‖s‖∞ of the step that produced this iterate (0 at the start and
after a rejected step).
lambda: NumberThe Levenberg–Marquardt parameter of that step (0 for a
Gauss–Newton step and at the start).
accepted: boolWhether that step was accepted (false at the start).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for LmIterate<'a>
impl<'a> RefUnwindSafe for LmIterate<'a>
impl<'a> Send for LmIterate<'a>
impl<'a> Sync for LmIterate<'a>
impl<'a> Unpin for LmIterate<'a>
impl<'a> UnsafeUnpin for LmIterate<'a>
impl<'a> UnwindSafe for LmIterate<'a>
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
impl<T, U> Imply<T> for U
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more