pub type ComplexRugStrictFinite<const PRECISION: u32> = ComplexValidated<RugStrictFinite<PRECISION>>;Expand description
A type alias for a validated complex scalar using the Rug kernel with a specified precision and the NumKernelStrictFinite validation policy.
Aliased Type§
pub struct ComplexRugStrictFinite<const PRECISION: u32> { /* private fields */ }Trait Implementations§
Source§impl<const PRECISION: u32> AbsDiffEq for ComplexRugStrictFinite<PRECISION>
impl<const PRECISION: u32> AbsDiffEq for ComplexRugStrictFinite<PRECISION>
Source§fn default_epsilon() -> Self::Epsilon
fn default_epsilon() -> Self::Epsilon
Returns the machine epsilon for the given precision.
Source§fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
Compares two complex values for approximate equality using absolute difference.
Returns true if both real and imaginary parts satisfy |a - b| <= epsilon.
Source§type Epsilon = AbsoluteTolerance<RealValidated<NumKernelStrictFinite<Float, PRECISION>>>
type Epsilon = AbsoluteTolerance<RealValidated<NumKernelStrictFinite<Float, PRECISION>>>
Used for specifying relative comparisons.
Source§fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
The inverse of
AbsDiffEq::abs_diff_eq.Source§impl<const PRECISION: u32> RelativeEq for ComplexRugStrictFinite<PRECISION>
impl<const PRECISION: u32> RelativeEq for ComplexRugStrictFinite<PRECISION>
Source§fn default_max_relative() -> Self::Epsilon
fn default_max_relative() -> Self::Epsilon
Returns a reasonable default for relative comparisons.
Source§fn relative_eq(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon,
) -> bool
fn relative_eq( &self, other: &Self, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool
Compares two complex values for approximate equality using relative difference.
Checks that both real and imaginary parts are relatively equal.
Source§fn relative_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon,
) -> bool
fn relative_ne( &self, other: &Rhs, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool
The inverse of
RelativeEq::relative_eq.