numr 0.17.0

Numerical computing and tensor library for Rust, in the role of NumPy: n-dimensional arrays, linear algebra, FFT, statistics and autograd on CPU, CUDA and WebGPU
Documentation
//! SIMD per-pair reductions for distance metrics.
//!
//! Each kernel reduces one pair of contiguous `f32` or `f64` vectors to a sum.
//! The final metric formula (square root, cosine ratio) stays in
//! `kernels::distance::metrics`, so this module only owns the summation.
//! The `*_with` entry points take an explicit level. `crate::distance` calls
//! them through its `Kernels` handle.
//!
//! # Architecture Support
//!
//! | Architecture | Instruction Set | Status                          |
//! |--------------|-----------------|---------------------------------|
//! | x86-64       | AVX-512         | Dedicated kernels (masked tail) |
//! | x86-64       | AVX2 + FMA      | Dedicated kernels               |
//! | ARM64        | NEON            | Dedicated kernels               |
//! | Any          | Scalar          | Same order as `metrics.rs`      |

#[cfg(target_arch = "aarch64")]
mod aarch64;
mod dispatch;
mod scalar;
mod sums;
#[cfg(target_arch = "x86_64")]
mod x86_64;

pub use dispatch::{
    cosine_sums_f32, cosine_sums_f32_with, cosine_sums_f64, cosine_sums_f64_with, dot_f32_with,
    dot_f64_with, manhattan_f32, manhattan_f32_with, manhattan_f64, manhattan_f64_with,
    sqeuclidean_f32, sqeuclidean_f32_with, sqeuclidean_f64, sqeuclidean_f64_with,
};