Expand description
Runtime-dispatched SIMD kernel abstraction.
SimdKernel is a trait that abstracts batch floating-point arithmetic.
Concrete implementations cover the scalar fallback, AVX2, and NEON paths.
global_kernel selects the best available kernel once per process via
OnceLock — subsequent calls are a single pointer load.
Structs§
- Avx2
Kernel - AVX2/FMA-accelerated kernel.
- Scalar
Kernel - Pure-scalar fallback kernel. Works on every platform.
Traits§
- Simd
Kernel - Batch arithmetic operations, abstracted over SIMD width and ISA.
Functions§
- global_
kernel - Returns the best available
SimdKernelfor this process.