pub enum RootError {
InvalidInterval,
InvalidTolerance,
MaxIterationsReached,
NonFiniteValue,
ZeroDerivative,
}Expand description
Failure modes for approximate iterative root finders.
Variants§
InvalidInterval
The initial interval does not bracket a root.
InvalidTolerance
The configured tolerance is not finite and positive.
MaxIterationsReached
The solver did not converge within the iteration budget.
NonFiniteValue
A function evaluation, derivative evaluation, or iterate became non-finite.
ZeroDerivative
A Newton-Raphson step encountered an approximately zero derivative.
Trait Implementations§
impl Copy for RootError
impl Eq for RootError
impl StructuralPartialEq for RootError
Auto Trait Implementations§
impl Freeze for RootError
impl RefUnwindSafe for RootError
impl Send for RootError
impl Sync for RootError
impl Unpin for RootError
impl UnsafeUnpin for RootError
impl UnwindSafe for RootError
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