Trait aether_primitives::fft::Fft
source · pub trait Fft {
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