pub struct MaxGradientEvals(pub u64);Expand description
Stop after state.gradient_evals() >= n gradient evaluations. Bound
on S: GradientState so it can’t be paired with derivative-free
solvers — a compile error rather than a silently no-op criterion.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl<S: GradientState> TerminationCriterion<S> for MaxGradientEvals
impl<S: GradientState> TerminationCriterion<S> for MaxGradientEvals
Auto Trait Implementations§
impl Freeze for MaxGradientEvals
impl RefUnwindSafe for MaxGradientEvals
impl Send for MaxGradientEvals
impl Sync for MaxGradientEvals
impl Unpin for MaxGradientEvals
impl UnsafeUnpin for MaxGradientEvals
impl UnwindSafe for MaxGradientEvals
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