Registry / other / fftw-sys

fftw-sys

JSON →
library0.8.0rscratesunverified

unsafe wrapper of FFTW3

# Cargo.toml [dependencies] fftw-sys = "0.8.0"
INSTALL
IMPORT
SIG · FFTW-SYS
F
fftw-sys
otherrustv0.8.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

fftw_plan_dft_1d
use fftw_sys::fftw_plan_dft_1d;

Performs a 1D FFT using FFTW3.

use fftw_sys::{fftw_plan_dft_1d, fftw_execute, fftw_destroy_plan}; fn main() { let n = 1024; let mut input = vec![0.0; n]; let mut output = vec![0.0; n]; unsafe { let plan = fftw_plan_dft_1d(n, input.as_mut_ptr(), output.as_mut_ptr(), 1, 0); fftw_execute(plan); fftw_destroy_plan(plan); } }
Debug
Known issues
gotchaRequires FFTW3 library to be installed on the system.
fix
Install FFTW3 via system package manager (e.g., apt install libfftw3-dev).
affects: >=0.8.0
Upgrade
Version history
0.8.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
fftw-sys — cargo add fftw-sys · libregistry