pub enum DiffStatus {
Ok,
InvalidPoint,
NotFinite,
DegenerateStep,
DimensionMismatch,
}Expand description
Why a derivative or Jacobian entry is, or is not, trustworthy.
§Units
Dimensionless — a status code.
Variants§
Ok
The difference quotient was formed from finite evaluations with a non-degenerate step. The value is usable.
InvalidPoint
The point x itself was not finite, so no step could be taken.
NotFinite
At least one function evaluation returned a non-finite value, or the difference quotient itself came out non-finite (overflow in the subtraction, for instance).
DegenerateStep
The step collapsed: relative_step was zero, negative or non-finite, or
x + h rounded back to x so the realised step was exactly zero. The
quotient would have been a division by zero.
DimensionMismatch
Implementations§
Trait Implementations§
Source§impl Clone for DiffStatus
impl Clone for DiffStatus
impl Copy for DiffStatus
Source§impl Debug for DiffStatus
impl Debug for DiffStatus
impl Eq for DiffStatus
Source§impl Hash for DiffStatus
impl Hash for DiffStatus
Source§impl PartialEq for DiffStatus
impl PartialEq for DiffStatus
impl StructuralPartialEq for DiffStatus
Auto Trait Implementations§
impl Freeze for DiffStatus
impl RefUnwindSafe for DiffStatus
impl Send for DiffStatus
impl Sync for DiffStatus
impl Unpin for DiffStatus
impl UnsafeUnpin for DiffStatus
impl UnwindSafe for DiffStatus
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