pub enum RootFinderError {
NotConverged {
iterations: u32,
x: f64,
residual: f64,
},
NotInBracket,
NonFinite {
x: f64,
value: f64,
},
NonFiniteDerivative {
x: f64,
value: f64,
},
DivergedStep {
x: f64,
},
Callback(LoxError),
}Expand description
Error returned by root-finding algorithms.
Variants§
NotConverged
The algorithm did not converge within the maximum number of iterations.
Fields
NotInBracket
The root is not within the given bracket.
NonFinite
The objective function returned a non-finite value.
Fields
NonFiniteDerivative
The derivative returned a non-finite value.
Fields
DivergedStep
The iteration update diverged, e.g. due to a zero derivative at a stationary point or a vanishing update denominator.
Callback(LoxError)
The objective function returned an error.
Trait Implementations§
Source§impl Debug for RootFinderError
impl Debug for RootFinderError
Source§impl Display for RootFinderError
impl Display for RootFinderError
Source§impl Error for RootFinderError
impl Error for RootFinderError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for RootFinderError
impl !UnwindSafe for RootFinderError
impl Freeze for RootFinderError
impl Send for RootFinderError
impl Sync for RootFinderError
impl Unpin for RootFinderError
impl UnsafeUnpin for RootFinderError
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