fft#

pynlo.utility.fft.fft(x, fsc=1.0, n=None, axis=-1, overwrite_x=False)[source]#

Use MKL to perform a 1D FFT of the input array along the given axis.

Parameters:
xarray_like

Input array, can be complex.

fscfloat, optional

The forward transform scale factor. The default is 1.0.

nint, optional

Length of the transformed axis of the output. If n is smaller than the length of the input, the input is cropped. If it is larger, the input is padded with zeros.

axisint, optional

Axis over which to compute the FFT. The default is the last axis.

overwrite_xbool, optional

If True, the contents of x may be overwritten during the computation. The default is False.

Returns:
complex ndarray

The transformed array.