pub struct Newton { /* private fields */ }Expand description
Newton optimization algorithm
This struct configures the Newton method, a second-order optimizer that uses the Hessian matrix for quadratic approximations.
§Fields
max_steps- Maximum number of optimization steps.gtol- Optional tolerance for gradient norm (stop if ||grad|| < gtol).ftol- Optional tolerance for change in objective value (stop if |f - prev_f| < ftol).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Newton
impl RefUnwindSafe for Newton
impl Send for Newton
impl Sync for Newton
impl Unpin for Newton
impl UnsafeUnpin for Newton
impl UnwindSafe for Newton
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