pub struct NewtonRaphson {
pub abs_tol: TensorRank0,
pub check_minimum: bool,
pub max_steps: usize,
}
Expand description
The Newton-Raphson method.
Fields§
§abs_tol: TensorRank0
Absolute error tolerance.
check_minimum: bool
Whether to check if solution is minimum.
max_steps: usize
Maximum number of steps.
Trait Implementations§
Source§impl Debug for NewtonRaphson
impl Debug for NewtonRaphson
Source§impl Default for NewtonRaphson
impl Default for NewtonRaphson
Source§impl<F, J, X> FirstOrderRootFinding<F, J, X> for NewtonRaphson
impl<F, J, X> FirstOrderRootFinding<F, J, X> for NewtonRaphson
fn root( &self, function: impl Fn(&X) -> Result<F, OptimizeError>, jacobian: impl Fn(&X) -> Result<J, OptimizeError>, initial_guess: X, equality_constraint: EqualityConstraint, ) -> Result<X, OptimizeError>
Source§impl<F, H, J, X> SecondOrderOptimization<F, H, J, X> for NewtonRaphson
impl<F, H, J, X> SecondOrderOptimization<F, H, J, X> for NewtonRaphson
fn minimize( &self, _function: impl Fn(&X) -> Result<F, OptimizeError>, jacobian: impl Fn(&X) -> Result<J, OptimizeError>, hessian: impl Fn(&X) -> Result<H, OptimizeError>, initial_guess: X, equality_constraint: EqualityConstraint, banded: Option<Banded>, ) -> Result<X, OptimizeError>
Auto Trait Implementations§
impl Freeze for NewtonRaphson
impl RefUnwindSafe for NewtonRaphson
impl Send for NewtonRaphson
impl Sync for NewtonRaphson
impl Unpin for NewtonRaphson
impl UnwindSafe for NewtonRaphson
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