pub struct NewtonKrylovOptions {
pub f_tol: f64,
pub f_rtol: f64,
pub x_tol: f64,
pub x_rtol: f64,
pub max_iter: Option<usize>,
pub inner_maxiter: usize,
pub rdiff: Option<f64>,
pub line_search: bool,
pub inner: InnerSolver,
}Expand description
Options for newton_krylov (SciPy’s defaults). The iteration stops when
‖F‖∞ ≤ f_tol and ‖F‖∞ ≤ f_rtol ‖F(x₀)‖∞, and the last correction dx satisfies
‖dx‖∞ ≤ x_tol and ‖dx‖∞ ≤ x_rtol ‖x‖∞.
Fields§
§f_tol: f64Default ε^{1/3} ≈ 6 × 10⁻⁶.
f_rtol: f64§x_tol: f64§x_rtol: f64§max_iter: Option<usize>The most Newton iterations; default 100 (n + 1).
inner_maxiter: usizeSteps of the inner Krylov solver per Newton iteration.
rdiff: Option<f64>The relative difference step; default √ε.
line_search: boolBacktrack along the Newton direction to reduce ‖F‖² (SciPy’s Armijo search).
inner: InnerSolverTrait Implementations§
Source§impl Clone for NewtonKrylovOptions
impl Clone for NewtonKrylovOptions
impl Copy for NewtonKrylovOptions
Source§impl Debug for NewtonKrylovOptions
impl Debug for NewtonKrylovOptions
Auto Trait Implementations§
impl Freeze for NewtonKrylovOptions
impl RefUnwindSafe for NewtonKrylovOptions
impl Send for NewtonKrylovOptions
impl Sync for NewtonKrylovOptions
impl Unpin for NewtonKrylovOptions
impl UnsafeUnpin for NewtonKrylovOptions
impl UnwindSafe for NewtonKrylovOptions
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