Skip to main content

fft

Function fft 

Source
pub fn fft<B: Backend, C: ComplexFloat>(
    x: &Array<B, C>,
    fft_type: FftType,
    fft_lengths: &[usize],
) -> Array<B, C>
Expand description

A complex-to-complex Fourier transform of the trailing axes (lax.fft with FftType::Fft or FftType::Ifft), of lengths fft_lengths (one to three, equal to the trailing dimensions). The inverse divides by the number of elements transformed.

ยงPanics

Panics if fft_type is a real transform, or the lengths do not match.