Struct rustfft::algorithm::Radix4 [−][src]
pub struct Radix4<T> { /* fields omitted */ }
FFT algorithm optimized for power-of-two sizes
// Computes a forward FFT of size 4096 use rustfft::algorithm::Radix4; use rustfft::{Fft, FftDirection}; use rustfft::num_complex::Complex; let mut buffer = vec![Complex{ re: 0.0f32, im: 0.0f32 }; 4096]; let fft = Radix4::new(4096, FftDirection::Forward); fft.process(&mut buffer);
Implementations
impl<T: FftNum> Radix4<T>
[src]
impl<T: FftNum> Radix4<T>
[src]pub fn new(len: usize, direction: FftDirection) -> Self
[src]
pub fn new(len: usize, direction: FftDirection) -> Self
[src]Preallocates necessary arrays and precomputes necessary data to efficiently compute the power-of-two FFT
Trait Implementations
impl<T> Direction for Radix4<T>
[src]
impl<T> Direction for Radix4<T>
[src]fn fft_direction(&self) -> FftDirection
[src]
fn fft_direction(&self) -> FftDirection
[src]Returns FftDirection::Forward if this instance computes forward FFTs, or FftDirection::Inverse for inverse FFTs
impl<T: FftNum> Fft<T> for Radix4<T>
[src]
impl<T: FftNum> Fft<T> for Radix4<T>
[src]fn process_outofplace_with_scratch(
&self,
input: &mut [Complex<T>],
output: &mut [Complex<T>],
_scratch: &mut [Complex<T>]
)
[src]
fn process_outofplace_with_scratch(
&self,
input: &mut [Complex<T>],
output: &mut [Complex<T>],
_scratch: &mut [Complex<T>]
)
[src]Divides input
and output
into chunks of size self.len()
, and computes a FFT on each chunk. Read more
fn process_with_scratch(
&self,
buffer: &mut [Complex<T>],
scratch: &mut [Complex<T>]
)
[src]
fn process_with_scratch(
&self,
buffer: &mut [Complex<T>],
scratch: &mut [Complex<T>]
)
[src]Divides buffer
into chunks of size self.len()
, and computes a FFT on each chunk. Read more
fn get_inplace_scratch_len(&self) -> usize
[src]
fn get_inplace_scratch_len(&self) -> usize
[src]Returns the size of the scratch buffer required by process_with_scratch
Read more
fn get_outofplace_scratch_len(&self) -> usize
[src]
fn get_outofplace_scratch_len(&self) -> usize
[src]Returns the size of the scratch buffer required by process_outofplace_with_scratch
Read more
Auto Trait Implementations
impl<T> !RefUnwindSafe for Radix4<T>
impl<T> Send for Radix4<T> where
T: Send,
T: Send,
impl<T> Sync for Radix4<T> where
T: Sync,
T: Sync,