bartorch.fft#
- bartorch.fft()#
Fourier transform along
axes, centred by default.- Parameters:
input (torch.Tensor)
axes (int or tuple of int) – Axes to transform, as indices into
input.shape.inverse (bool, default=False) – Transform with the positive exponent.
unitary (bool, default=False) – Scale by one over the square root of the transformed size; otherwise unnormalized.
uncentred (bool, default=False) – Keep the zero frequency at index zero rather than at
n // 2.
Examples
>>> spectrum = fft(image, axes=(-2, -1), unitary=True)