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§
Sourcefn fwd(&mut self, input: &[cf32], output: &mut [cf32], s: Scale)
fn fwd(&mut self, input: &[cf32], output: &mut [cf32], s: Scale)
FFT (Forward) from input
to output
Does not modify contents of input
Sourcefn bwd(&mut self, input: &[cf32], output: &mut [cf32], s: Scale)
fn bwd(&mut self, input: &[cf32], output: &mut [cf32], s: Scale)
iFFT (Backward) from input
to output
Does not modify contents of input
Sourcefn ifwd(&mut self, input: &mut [cf32], s: Scale)
fn ifwd(&mut self, input: &mut [cf32], s: Scale)
In-place FFT (Forward)
Overwrites the input
with the output of the transform