pub struct NewtonOpts {
pub tol: f64,
pub max_iter: usize,
pub damping: bool,
}Expand description
Options for solve_numeric_system_with.
Fields§
§tol: f64Convergence threshold on the residual norm ‖F(x)‖∞.
max_iter: usizeMaximum number of Newton iterations.
damping: boolEnable backtracking line search (halve the step until the residual decreases). Disable for pure Newton steps.
Trait Implementations§
Source§impl Clone for NewtonOpts
impl Clone for NewtonOpts
impl Copy for NewtonOpts
Source§impl Debug for NewtonOpts
impl Debug for NewtonOpts
Source§impl Default for NewtonOpts
impl Default for NewtonOpts
Source§impl PartialEq for NewtonOpts
impl PartialEq for NewtonOpts
impl StructuralPartialEq for NewtonOpts
Auto Trait Implementations§
impl Freeze for NewtonOpts
impl RefUnwindSafe for NewtonOpts
impl Send for NewtonOpts
impl Sync for NewtonOpts
impl Unpin for NewtonOpts
impl UnsafeUnpin for NewtonOpts
impl UnwindSafe for NewtonOpts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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