ifft¶
- ifft(x: array, /, *, n: int | None = None, axis: int = -1, norm: Literal['backward', 'ortho', 'forward'] = 'backward') array¶
- Computes the one-dimensional inverse discrete Fourier transform. - Note - Applying the one-dimensional inverse discrete Fourier transform to the output of this function must return the original (i.e., non-transformed) input array within numerical accuracy (i.e., - ifft(fft(x)) == x), provided that the transform and inverse transform are performed with the same arguments (number of elements, axis, and normalization mode).- Parameters:
- x (array) – input array. Should have a complex floating-point data type. 
- n (Optional[int]) – - number of elements over which to compute the transform along the axis (dimension) specified by - axis. Let- Mbe the size of the input array along the axis specified by- axis. When- nis- None, the function must set- nequal to- M.- If - nis greater than- M, the axis specified by- axismust be zero-padded to size- n.
- If - nis less than- M, the axis specified by- axismust be trimmed to size- n.
- If - nequals- M, all elements along the axis specified by- axismust be used when computing the transform.
 - Default: - None.
- axis (int) – axis (dimension) of the input array over which to compute the transform. A valid - axismust be an integer on the interval- [-N, N), where- Nis the rank (number of dimensions) of- x. If an- axisis specified as a negative integer, the function must determine the axis along which to compute the transform by counting backward from the last dimension (where- -1refers to the last dimension). Default:- -1.
- norm (Literal['backward', 'ortho', 'forward']) – - normalization mode. Should be one of the following modes: - 'backward': normalize by- 1/n.
- 'ortho': normalize by- 1/sqrt(n)(i.e., make the FFT orthonormal).
- 'forward': no normalization.
 - Default: - 'backward'.
 
- Returns:
- out (array) – an array transformed along the axis (dimension) specified by - axis. The returned array must have the same data type as- xand must have the same shape as- x, except for the axis specified by- axiswhich must have size- n.
 - Notes - New in version 2022.12.