Python wrappers
Public Python APIs implemented by this engine symbol.N-dimensional inverse real DFT (complex Hermitian-half to real).
Reconstructs the real signal from a Hermitian-half spectrum produced
by rfftn. The last transformed axis is expanded from the stored
length back to . Uses the
"backward" normalisation convention (divides by ).
Math
reconstructed assuming is Hermitian-symmetric along the last transformed axis ().
Shape
out.shape[axes[i]] == n[i] when n is supplied; otherwise
out.shape[axes.back()] == 2 * (a.shape[axes.back()] - 1) and
other transformed axes are unchanged.
See Also
rfftn_op : Forward real-input DFT. ifftn_op : Inverse of full complex-to-complex DFT.
Parameters
aTensorImplPtrrfftn.nvector<int64_t>axes.back(); when n is empty, the default 2 * (a.shape[axes.back()] - 1) is used.axesvector<int>Returns
TensorImplPtrF32 tensor. Shape follows a except that axes[i] is replaced by n[i] (with the default applied to the last axis when n is empty).
Raises
LucidErrora is null, not C64, axes is empty, or len(n) != len(axes) when n is non-empty.Notes
FFT bypasses IBackend dispatch and calls MLX directly (see
_Detail.h). When the original real length was odd, n.back()
must be supplied explicitly — the default formula assumes even length.