pub enum DotError {
ExactnessLost,
}Expand description
The dot product could not be computed exactly (see DotF64 docs).
Variants§
ExactnessLost
At least one partial product a*b fell into the subnormal range
(0 < |a·b| < 2⁻¹⁰²²), where the FMA two-product transformation can
lose the low part. The accumulated value is still a high-quality
result (each affected term’s error is below 2⁻¹⁰⁷⁴ · ½ulp of the
subnormal grid), but bit-exactness of the mathematical dot product
can no longer be guaranteed, so we tell you instead of pretending.
Trait Implementations§
impl Copy for DotError
impl Eq for DotError
Source§impl Error for DotError
impl Error for DotError
1.30.0 · 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()
impl StructuralPartialEq for DotError
Auto Trait Implementations§
impl Freeze for DotError
impl RefUnwindSafe for DotError
impl Send for DotError
impl Sync for DotError
impl Unpin for DotError
impl UnsafeUnpin for DotError
impl UnwindSafe for DotError
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