Trait Fft

Source
pub trait Fft {
    // Required methods
    fn fwd(&mut self, input: &[cf32], output: &mut [cf32], s: Scale);
    fn bwd(&mut self, input: &[cf32], output: &mut [cf32], s: Scale);
    fn ifwd(&mut self, input: &mut [cf32], s: Scale);
    fn ibwd(&mut self, input: &mut [cf32], s: Scale);
    fn len(&self) -> usize;
}
Expand description

Wrapper to be implemented for different fft implementations For example for use in VecOps FFT and input must be the same length

Required Methods§

Source

fn fwd(&mut self, input: &[cf32], output: &mut [cf32], s: Scale)

FFT (Forward) from input to output
Does not modify contents of input

Source

fn bwd(&mut self, input: &[cf32], output: &mut [cf32], s: Scale)

iFFT (Backward) from input to output
Does not modify contents of input

Source

fn ifwd(&mut self, input: &mut [cf32], s: Scale)

In-place FFT (Forward)
Overwrites the input with the output of the transform

Source

fn ibwd(&mut self, input: &mut [cf32], s: Scale)

In-place iFFT (Backward)
Overwrites the input with the output of the transform

Source

fn len(&self) -> usize

Retrieve the (fixed) size (number of bins) this is generated for

Implementors§