Trait lav::ApproxEq

source ·
pub trait ApproxEq<R: Real, Rhs = Self>
where Rhs: ?Sized,
{ // Required method fn approx_eq(&self, other: &Rhs, epsilon: R, ulp: R::Bits) -> bool; // Provided method fn approx_ne(&self, other: &Rhs, epsilon: R, ulp: R::Bits) -> bool { ... } }
Expand description

Tests for approximate equality.

Required Methods§

source

fn approx_eq(&self, other: &Rhs, epsilon: R, ulp: R::Bits) -> bool

Tests for approximate equality wrt epsilon or ulp, “or” in the sense of ||.

Provided Methods§

source

fn approx_ne(&self, other: &Rhs, epsilon: R, ulp: R::Bits) -> bool

Tests for approximate inequality wrt epsilon and ulp, “and” in the sense of &&.

Implementations on Foreign Types§

source§

impl<const N: usize> ApproxEq<f32> for Simd<f32, N>

source§

fn approx_eq(&self, other: &Self, epsilon: f32, ulp: u32) -> bool

source§

impl<const N: usize> ApproxEq<f64> for Simd<f64, N>

source§

fn approx_eq(&self, other: &Self, epsilon: f64, ulp: u64) -> bool

Implementors§

source§

impl<R: Real> ApproxEq<R> for R