Python wrappers
Public Python APIs implemented by this engine symbol.N-dimensional inverse complex-to-complex DFT (forward of the inverse).
Inverts an N-D DFT. Uses the "backward" normalisation
convention: forward has no scaling, this op divides by
where is the transform length along each axis.
Math
See Also
fftn_op : Forward N-D DFT. irfftn_op : Inverse of the real-input DFT.
Parameters
aTensorImplPtrInput tensor. C64 expected; F16/F32 are accepted and promoted.
nvector<int64_t>Per-axis transform length. Empty means "use input sizes". When supplied,
len(n) == len(axes) is required.axesvector<int>Axes to transform. Negative values are normalised against the input rank. Empty means "transform all axes".
Returns
TensorImplPtrC64 tensor of the same shape as a (with axes[i] replaced by n[i] when n is supplied).
Raises
LucidErrorIf
a is null, rank-0, has an unsupported dtype, or if len(n) != len(axes) when n is non-empty.Notes
FFT bypasses IBackend dispatch and calls MLX directly from both CPU
and GPU device paths (see _Detail.h).