cupy.fft.fft#

cupy.fft.fft(a, n=None, axis=-1, norm=None)[source]#

Compute the one-dimensional FFT.

Parameters:
  • a (cupy.ndarray) – Array to be transform.

  • n (None or int) – Length of the transformed axis of the output. If n is not given, the length of the input along the axis specified by axis is used.

  • axis (int) – Axis over which to compute the FFT.

  • norm ("backward", "ortho", or "forward") – Optional keyword to specify the normalization mode. Default is None, which is an alias of "backward".

Returns:

The transformed array which shape is specified by n and type will convert to complex if the input is other.

Return type:

cupy.ndarray

See also

numpy.fft.fft()