Expand description
Generic SIMD-aware vector operations.
Public operations are expressed once over sealed scalar traits. The concrete scalar type is selected at the call site, and monomorphization removes the trait layer before execution. Native ISA kernels are private backend details.
Traits§
- Simd
Real - Scalar contract for native-precision real-valued statistics.
- Simd
Scalar - Native-precision scalar contract for SIMD-aware slice operations.
Functions§
- add
- Adds two slices into
result. - dot
- Computes a native-precision dot product.
- has_
avx2_ support - Returns true when the current x86 CPU supports AVX2.
- has_
native_ vector_ path - Returns whether
Thas a native vector backend on the current CPU. - has_
neon_ support - Returns true when the current AArch64 CPU supports NEON.
- matrix_
mul_ square - Multiplies two row-major square matrices.
- mean
- Computes a native-precision arithmetic mean.
- mul
- Multiplies two slices into
result. - sum
- Computes a native-precision sum.
- variance
- Computes a native-precision population variance.