Working FFTs
This commit is contained in:
@ -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
|
||||
}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user