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§
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
Sourcefn from_f64_exact_binary(x: f64) -> Self
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.
Sourcefn from_arb(value: &ArbPrec) -> Self
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.
Sourcefn mpfr_enclosure(&self, precision: u32) -> (Float, Float)
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.
Sourcefn sampling_precision() -> SamplingPrecision
fn sampling_precision() -> SamplingPrecision
Native sampling lane, distinct from the allowed physical stability levels.
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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".