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
//! SIMD-accelerated clamp operation
//!//! clamp(x, min, max) = min(max(x, min), max)
//!//! # SIMD Approach
//!//! - Broadcast min and max values to vectors
//! - Use SIMD max then min operations
#[cfg(target_arch ="x86_64")]modavx2;#[cfg(target_arch ="x86_64")]modavx512;#[cfg(target_arch ="aarch64")]modaarch64;moddispatch;modhalf;modscalar;pubusedispatch::{clamp_f32, clamp_f64};#[cfg(feature ="f16")]pubusehalf::{clamp_bf16, clamp_f16};