Skip to main content

Module fft

Module fft 

Source
Expand description

Fast Fourier transforms (lax.fft), with XLA’s conventions: the forward transforms are not normalized, and the inverse transforms divide by the number of elements transformed.

The transforms are computed in f64 (radix-2 for powers of two, Bluestein’s algorithm for other lengths) and rounded once to the result type, so the results agree with XLA’s (which computes complex64 in f32) within rounding, not bit for bit.

Enums§

FftType
The kind of a Fourier transform (lax.FftType).

Functions§

fft
fft: the transform of the last fft_lengths.len() axes of x (of shape shape). The operand must have been checked: its type is accepted by fft_type, and its trailing dimensions match fft_lengths (for Irfft, the last one is n / 2 + 1).