accelerate-rs
Safe Rust bindings for Apple's
Accelerate
framework on macOS using pure C FFI.
The GitHub repository is accelerate-rs; the published crates.io package is
apple-accelerate.
Install
Quick start
use ;
let added = add_f32.expect;
assert_eq!;
let mut output = vec!;
sgemm_row_major
.expect;
assert_eq!;
v0.1 surface
- Safe
vDSPhelpers for FFT setup, vector arithmetic, dot product, reductions, and window generation - Safe
CBLAShelpers forsdot, row-majorsgemv, and row-majorsgemm - Safe
vImagehelpers for ARGB8888 rotate / box-convolve / scale and Planar8 contrast stretch - Thin unsafe BNNS filter wrapper for convolution / fully connected create-apply-destroy workflows
- Raw
ffimodule exposing the underlying C types and functions
Smoke examples