accelerate-rs
Safe Rust bindings for Apple's
Accelerate
framework on macOS using a Swift bridge over the C APIs.
The GitHub repository is accelerate-rs; the published crates.io package is
apple-accelerate.
Install
Enable the raw-ffi feature if you also want the underlying C declarations:
Quick start
use ;
v0.2 surface
vDSP: FFT setup, biquad setup, vector arithmetic, reductions, and window generationvForce: element-wise transcendental and root functions overf32slicesBLAS:sdot, row-majorsgemv, and row-majorsgemmLAPACK: LU factorization and linear solves for column-major single-precision matricesBNNS: safe ReLU/sigmoid vector activations plus the existing thin unsafe filter ownerSparse: sparse-vector dot products and sparse-to-dense accumulationvImage: ARGB8888 rotate / box-convolve / scale and Planar8 contrast stretchsimd: SIMD4 add / dot / length / normalize helpersQuadrature: one-dimensional adaptive numerical integration with Rust closuresraw-ffifeature: re-exports the underlying C declarations for all wrapped areas
Smoke examples
for; do
done
The numbered examples cover every logical area of the crate.