Working FFTs

This commit is contained in:
2025-09-24 09:03:13 +02:00
parent d191b912b0
commit bd7ae2b19e
9 changed files with 15071 additions and 5003 deletions

View File

@ -1,11 +1,12 @@
// Implementation of raders's fft for prime sized ffts
/*
use std::{f32::consts::PI, ops::Deref};
use super::mixed_radix;
use crate::{
complex::Complex32,
fft::{DFT, create_fft, dft::NaiveDFT, is_prime, windows},
fft::{DFT, FFTDirection, create_fft, dft::NaiveDFT, is_prime, windows},
};
pub struct Rader2FFT {
@ -22,7 +23,7 @@ pub struct Rader2FFT {
}
impl DFT for Rader2FFT {
fn create(size: usize) -> Self
fn create(size: usize, direction: FFTDirection) -> Self
where
Self: Sized,
{
@ -165,3 +166,4 @@ pub fn next_pow2(mut n: usize) -> usize {
}
1 << pow
}
*/