2 stable releases
1.1.1 | Feb 21, 2025 |
---|---|
1.1.0 | Feb 20, 2025 |
1.0.0 |
|
#490 in Math
132 downloads per month
51KB
868 lines
PalmFFT
The Infinite Monkey Derivative of PocketFFT.
It's technically a dirty-room implementation, but my brain is clean. fuck.
This repository is released as Public Domain as a reminder not to do the same shit I did.
What it can do
- Complex FFT, Basic complex arithmetics. That's it.
- Real FFT? No, I have my life.
- Try searching unsafe, You won't find any
- Dependency? Is that something I can eat?
How to use
use palmfft::{CfftPlan, Complex};
// just a random data
let n = 1024;
let mut data = vec![Complex::new(0.0, 0.0); n];
// ... fuck around with the data vector ...
let fct = 1.0 / data.len() as f64; // this is a scale factor
// initialise fft plan, no mismatch allowed
let plan = CfftPlan::new(data.len());
plan.forward(&mut data, 1.0); // fft
plan.backward(&mut data, fct); // ifft
Again, fuck.