simd_kernels/
lib.rs

1// Copyright Peter Bower 2025. All Rights Reserved.
2// Licensed under the Mozilla Public License (MPL) 2.0. 
3// See LICENSE for details.
4
5// At the time of writing this unlocks extra std::simd that the developers
6// intend on stabilising but haven't yet.
7// This includes custom lane management abstractions, and related features.
8#![feature(portable_simd)]
9#![feature(float_erf)]
10
11// compile with RUSTFLAGS="-C target-cpu=native" cargo +nightly build --features portable_simd
12
13pub mod operators;
14
15pub mod kernels {
16    pub mod aggregate;
17    pub mod arithmetic;
18    pub mod binary;
19    pub mod bitmask;
20    pub mod comparison;
21    pub mod conditional;
22    pub mod logical;
23    pub mod sort;
24    pub mod string;
25    pub mod unary;
26    pub mod window;
27    pub mod scientific {
28        #[cfg(feature = "linear_algebra")]
29        pub mod blas_lapack;
30        #[cfg(feature = "probability_distributions")]
31        pub mod distributions;
32        #[cfg(feature = "probability_distributions")]
33        pub mod erf;
34        #[cfg(feature = "fourier_transforms")]
35        pub mod fft;
36        #[cfg(feature = "linear_algebra")]
37        pub mod matrix;
38        #[cfg(feature = "universal_functions")]
39        pub mod scalar;
40        #[cfg(feature = "linear_algebra")]
41        pub mod vector;
42    }
43}
44
45pub mod traits {
46    pub mod to_bits;
47}
48
49pub mod config;
50pub mod errors;
51
52pub mod utils;