constfft
A Rust library crate providing an FFT API for arrays. This crate wraps the
rustfft crate that does the heavy lifting behind the scenes. Use constfft
if you're working with arrays, i.e. you know the size of the signal at
compile time.
Working with fft's and iffts should be simple:
use assert_ulps_eq;
use Complex;
use Fft;
use Ifft;
Advantages
- If it compiles, your code won't panicâ„¢ in this library[^panic]
- Ergonomic API
Current limitations
- No implementation for slices
- No implementation for
real_[i]fft: issue
Possible future plans
Currently I don't see any reason why the same API (minus the compile time size
checks) cannot be implementable on slices. This seems like a much nicer API to
work with and AFAICT does not depend on the types to be arrays. If this is the
case I'd implement the same API on slices and rename this crate to easyfft.
Footnotes
[^panic]: While this could be true in theory, in practice it probably is not. There could be bugs in this crate or it's dependencies that may cause a panic, but in theory all the runtime panics have been moved to compile time errors.