Skip to main content

Crate rifft

Crate rifft 

Source
Expand description

Deterministic CPU 2-D FFTs with optional C/Python interop.

The primary entry point for Rust callers is RifftHandle. For the C ABI see crate::api_c. For Python bindings build with the python feature via maturin.

§Example

use num_complex::Complex32;
use rifft::RifftHandle;

let handle = RifftHandle::new();
let mut plane = vec![Complex32::default(); 512 * 512];
handle.fft2d_forward(&mut plane, 512, 512).unwrap();

§Environment variables

  • RUSTFFT_THREADS: controls Rayon thread count for FFT execution.
  • RIFFT_PREPLAN: set to auto or a comma-separated list like 256x256,1024x512 to warm plan caches when constructing a new RifftHandle.

Modules§

api_c
dlpack
fft2d
fused
planner
simd
timing
transpose
types
workspace

Structs§

RifftHandle

Functions§

get_backend_name
get_version