ComplexRugStrictFinite

Type Alias ComplexRugStrictFinite 

Source
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>

Source§

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

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>>>

Used for specifying relative comparisons.
Source§

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>

Source§

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

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

The inverse of RelativeEq::relative_eq.
Source§

impl<const PRECISION: u32> TryFrom<Complex<f64>> for ComplexRugStrictFinite<PRECISION>

Source§

type Error = ErrorsValidationRawComplex<ErrorsTryFromf64<Float>>

The type returned in the event of a conversion error.
Source§

fn try_from(value: Complex<f64>) -> Result<Self, Self::Error>

Performs the conversion.