Expand description
Safe wrappers for AOCL-FFTW.
Provides:
- One-shot 1-D / 2-D / 3-D complex DFTs (in-place) in both
f64(default names) andf32(suffixed_f32). - One-shot 1-D real-to-complex (
r2c) and complex-to-real (c2r) transforms in both precisions. - Reusable plan types:
Plan(f64) andPlanF32(f32) that cache plan creation and support FFTW’s “new-array execute” routines for repeated transforms over the same shape.
Plan creation/destruction is serialized through a process-wide mutex because FFTW’s planner is not internally thread-safe in the single-threaded build we link against. Plan execution is thread-safe and not held under that lock. The same lock guards both precisions since they share the planner state.
Structs§
- Plan
- A reusable FFTW plan over a fixed shape and transform kind.
- PlanF32
- A reusable single-precision FFTW plan over a fixed shape.
Enums§
Functions§
- backward_
inplace - Convenience: backward (unscaled) 1-D DFT in place.
- backward_
inplace_ f32 - Convenience: backward (unscaled) 1-D
f32DFT in place. - c2r_1d
- Compute a 1-D complex-to-real (backward) DFT.
- c2r_
1d_ f32 - Compute a 1-D complex-to-real (backward)
f32DFT. - dft_
1d_ inplace - Compute a 1-D complex DFT in place.
datais treated asn = data.len()complex samples in[real, imag]order. - dft_
1d_ inplace_ f32 - Compute a 1-D complex DFT in place over
f32samples. - dft_
2d_ inplace - Compute a 2-D complex DFT in place.
dataisn0 × n1complex samples in row-major order (lengthn0 · n1). - dft_
2d_ inplace_ f32 - Compute a 2-D complex DFT in place over
f32samples (row-major). - dft_
3d_ inplace - Compute a 3-D complex DFT in place.
- dft_
3d_ inplace_ f32 - Compute a 3-D complex DFT in place over
f32samples. - forward_
inplace - Convenience: forward 1-D DFT in place.
- forward_
inplace_ f32 - Convenience: forward 1-D
f32DFT in place. - r2c_1d
- Compute a 1-D real-to-complex (forward) DFT.
- r2c_
1d_ f32 - Compute a 1-D real-to-complex (forward)
f32DFT.
Type Aliases§
- Result
- Crate result alias — used by every
aocl-*safe wrapper crate.