[−][src]Trait mathru::algebra::abstr::RelativeEq
Equality comparisons between two numbers using both the absolute difference and relative based comparisons.
Required methods
pub fn default_max_relative() -> Self::Epsilon
[src]
The default relative tolerance for testing values that are far-apart.
This is used when no max_relative
value is supplied to the relative_eq
macro.
pub fn relative_eq(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
[src]
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
A test for equality that uses a relative comparison if the values are far apart.
Provided methods
pub fn relative_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
[src]
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
The inverse of RelativeEq::relative_eq
.
Implementations on Foreign Types
impl RelativeEq<f32> for f32
[src]
pub fn default_max_relative() -> f32
[src]
pub fn relative_eq(&self, other: &f32, epsilon: f32, max_relative: f32) -> bool
[src]
impl RelativeEq<f64> for f64
[src]
pub fn default_max_relative() -> f64
[src]
pub fn relative_eq(&self, other: &f64, epsilon: f64, max_relative: f64) -> bool
[src]
Implementors
impl RelativeEq<Matrix<f32>> for Matrix<f32>
[src]
pub fn default_max_relative() -> f32
[src]
pub fn relative_eq(
&self,
other: &Matrix<f32>,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
[src]
&self,
other: &Matrix<f32>,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
A test for equality that uses a relative comparison if the values are far apart.
impl RelativeEq<Matrix<f64>> for Matrix<f64>
[src]
pub fn default_max_relative() -> f64
[src]
pub fn relative_eq(
&self,
other: &Matrix<f64>,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
[src]
&self,
other: &Matrix<f64>,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
A test for equality that uses a relative comparison if the values are far apart.
impl RelativeEq<Vector<f32>> for Vector<f32>
[src]
pub fn default_max_relative() -> f32
[src]
pub fn relative_eq(
&self,
other: &Vector<f32>,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
[src]
&self,
other: &Vector<f32>,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
A test for equality that uses a relative comparison if the values are far apart.
impl RelativeEq<Vector<f64>> for Vector<f64>
[src]
pub fn default_max_relative() -> f64
[src]
pub fn relative_eq(
&self,
other: &Vector<f64>,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
[src]
&self,
other: &Vector<f64>,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
A test for equality that uses a relative comparison if the values are far apart.