Back to Numerical Arrays (NumPy)
np.irfft
Compute the inverse of the one-dimensional discrete Fourier Transform for real input.
Syntax
np.irfft(a, n?, axis?, norm?)
Description
Compute the inverse of the one-dimensional discrete Fourier Transform for real input. This function computes the inverse of the one-dimensional n-point DFT of Hermitian-symmetric input (from rfft). The input should have shape (..., n//2 + 1).
Parameters
| Name | Description |
|---|---|
| a | - Input array (complex, Hermitian-symmetric) |
| n(optional) | - Length of the output. If n is not given, it is determined from the input shape: n = 2 * (a.shape[axis] - 1) |
| axis(optional) | - Axis over which to compute the inverse FFT. Default: -1 |
| norm(optional) | - Normalization mode |
Returns
NDArray