Expand description
elem-simd-math — vectorized elementwise math for f64.
This crate is a port of SLEEF as expressed by the sleef-rs crate, rewritten against the
stable-Rust SIMD abstraction of fearless_simd so that it builds on stable Rust with
runtime CPU feature detection. See NOTICE and THIRD-PARTY-LICENSES for the provenance and
licensing of the derived portions.
§Layers
f64xexposes the ported kernels as functions generic over afearless_simd::Simdtoken, operating on native-width vectors. Use these when you already own the SIMD loop.ElementwiseMathexposes slice entry points that pick the best available SIMD level at runtime, with a scalar fallback.
§Accuracy
Kernels come from SLEEF’s four accuracy tiers and each function documents its tier’s error
bound (u05 = 0.5 ULP, u10 = 1.0 ULP, u15 = 1.5 ULP, u35 = 3.5 ULP). Those bounds are
asserted by the ported upstream test suites against MPFR. They bound the vector body; the
value produced for inputs outside a kernel’s tested domain is documented per function.
Modules§
- bessel
- Scalar reference for
i0e,i1eandxlogy, and the coefficient tables the vector kernels incrate::f64x::specialshare with it. - common
- Type aliases for the
f64kernel family, and the translation table they follow. - constants
- Scalar constants shared by the ported kernels.
- doubled
- Double-double (“double-float”) arithmetic over SIMD vectors.
- f32
- The
f32slice entry points are also available as free functions here. - f64
- The
f64slice entry points are also available as free functions here. - f32x
- Vector helpers for the
f32kernels. - f64x
- Vector helpers for the
f64kernels.
Structs§
- Length
Mismatch - The source and destination lengths differ.
Traits§
- Elementwise
Math - Elementwise math over contiguous slices.