Skip to main content

FloatLike

Trait FloatLike 

Source
pub trait FloatLike:
    Real
    + Send
    + Sync
    + 'static
    + R
    + Default
    + Clone
    + PartialOrd
    + RealLike
    + for<'a> RefAdd<&'a Self, Output = Self>
    + RefAdd<Self, Output = Self>
    + for<'a> RefMul<&'a Self, Output = Self>
    + RefMul<Self, Output = Self>
    + for<'a> RefSub<&'a Self, Output = Self>
    + RefSub<Self, Output = Self>
    + for<'a> RefDiv<&'a Self, Output = Self>
    + RefDiv<Self, Output = Self>
    + for<'a> RefRem<&'a Self, Output = Self>
    + RefNeg<Output = Self>
    + RefZero
    + RefOne
    + PrecisionUpgradable
    + Serialize
    + Display
    + GenericEvaluatorFloat
    + Into<Float> {
Show 28 methods // Required methods fn PI(&self) -> Self; fn E(&self) -> Self; fn TAU(&self) -> Self; fn SQRT_2(&self) -> Self; fn SQRT_2_HALF(&self) -> Self; fn PIHALF(&self) -> Self; fn FRAC_1_PI(&self) -> Self; fn from_f64(x: f64) -> Self; fn from_f64_exact_binary(x: f64) -> Self; fn from_arb(value: &ArbPrec) -> Self; fn mpfr_enclosure(&self, precision: u32) -> (Float, Float); fn sampling_precision() -> SamplingPrecision; fn sampling_bridge_cache( setup: &LmbMultiChannelingSetup, ) -> &RuntimeCache<Result<SamplingChannelBridge<Self>, SamplingEvaluationError>>; fn sampling_bridge_cache_mut( setup: &mut LmbMultiChannelingSetup, ) -> &mut RuntimeCache<Result<SamplingChannelBridge<Self>, SamplingEvaluationError>>; fn into_f64(&self) -> f64; fn is_nan(&self) -> bool; fn is_infinite(&self) -> bool; fn floor(&self) -> Self; fn epsilon(&self) -> Self; fn rem_euclid(&self, rhs: &Self) -> Self; fn try_extract_externals_from_cache( externals: &Externals, ) -> Option<&TiVec<ExternalIndex, FourMomentum<F<Self>>>>; // Provided methods fn square(&self) -> Self { ... } fn powi(&self, n: i32) -> Self { ... } fn less_than_epsilon(&self) -> bool { ... } fn positive(&self) -> bool { ... } fn max_value(&self) -> Self { ... } fn min_value(&self) -> Self { ... } fn ln(&self) -> Self { ... }
}

Required Methods§

Source

fn PI(&self) -> Self

Source

fn E(&self) -> Self

Source

fn TAU(&self) -> Self

Source

fn SQRT_2(&self) -> Self

Source

fn SQRT_2_HALF(&self) -> Self

Source

fn PIHALF(&self) -> Self

Source

fn FRAC_1_PI(&self) -> Self

Source

fn from_f64(x: f64) -> Self

Source

fn from_f64_exact_binary(x: f64) -> Self

Preserve the exact stored binary64 value of an original Monte Carlo coordinate. User-authored settings retain the existing decimal policy.

Source

fn from_arb(value: &ArbPrec) -> Self

Round directly from the canonical Arb draw, never through another lane. Materialization uses the checked F::from_arb boundary below.

Source

fn mpfr_enclosure(&self, precision: u32) -> (Float, Float)

Enclose the exact represented native value at the requested MPFR precision. Directed rounding includes both separated Quad limbs; this is a certificate boundary, unlike ordinary nearest-rounded conversion.

Source

fn sampling_precision() -> SamplingPrecision

Native sampling lane, distinct from the allowed physical stability levels.

Source

fn sampling_bridge_cache( setup: &LmbMultiChannelingSetup, ) -> &RuntimeCache<Result<SamplingChannelBridge<Self>, SamplingEvaluationError>>

Source

fn sampling_bridge_cache_mut( setup: &mut LmbMultiChannelingSetup, ) -> &mut RuntimeCache<Result<SamplingChannelBridge<Self>, SamplingEvaluationError>>

Source

fn into_f64(&self) -> f64

Source

fn is_nan(&self) -> bool

Source

fn is_infinite(&self) -> bool

Source

fn floor(&self) -> Self

Source

fn epsilon(&self) -> Self

Source

fn rem_euclid(&self, rhs: &Self) -> Self

Source

fn try_extract_externals_from_cache( externals: &Externals, ) -> Option<&TiVec<ExternalIndex, FourMomentum<F<Self>>>>

Provided Methods§

Source

fn square(&self) -> Self

Source

fn powi(&self, n: i32) -> Self

Source

fn less_than_epsilon(&self) -> bool

Source

fn positive(&self) -> bool

Source

fn max_value(&self) -> Self

Source

fn min_value(&self) -> Self

Source

fn ln(&self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl FloatLike for f64

Source§

fn mpfr_enclosure(&self, precision: u32) -> (Float, Float)

Source§

fn PI(&self) -> Self

Source§

fn SQRT_2(&self) -> Self

Source§

fn SQRT_2_HALF(&self) -> Self

Source§

fn PIHALF(&self) -> Self

Source§

fn E(&self) -> Self

Source§

fn TAU(&self) -> Self

Source§

fn FRAC_1_PI(&self) -> Self

Source§

fn from_f64_exact_binary(x: f64) -> Self

Source§

fn from_arb(value: &ArbPrec) -> Self

Source§

fn sampling_precision() -> SamplingPrecision

Source§

fn sampling_bridge_cache( setup: &LmbMultiChannelingSetup, ) -> &RuntimeCache<Result<SamplingChannelBridge<Self>, SamplingEvaluationError>>

Source§

fn sampling_bridge_cache_mut( setup: &mut LmbMultiChannelingSetup, ) -> &mut RuntimeCache<Result<SamplingChannelBridge<Self>, SamplingEvaluationError>>

Source§

fn from_f64(x: f64) -> Self

Source§

fn into_f64(&self) -> f64

Source§

fn is_nan(&self) -> bool

Source§

fn is_infinite(&self) -> bool

Source§

fn floor(&self) -> Self

Source§

fn rem_euclid(&self, rhs: &Self) -> Self

Source§

fn try_extract_externals_from_cache( externals: &Externals, ) -> Option<&TiVec<ExternalIndex, FourMomentum<F<Self>>>>

Source§

fn epsilon(&self) -> Self

Implementors§