ihfft¶
- ihfft(x: array, /, *, n: int | None = None, axis: int = -1, norm: Literal['backward', 'ortho', 'forward'] = 'backward') array¶
Computes the one-dimensional inverse discrete Fourier transform of a signal with Hermitian symmetry.
- Parameters:
x (array) – input array. Must have a real-valued floating-point data type.
n (Optional[int]) –
number of elements over which to compute the transform along the axis (dimension) specified by
axis. LetMbe the size of the input array along the axis specified byaxis. WhennisNone, the function must setnequal toM.If
nis greater thanM, the axis specified byaxismust be zero-padded to sizen.If
nis less thanM, the axis specified byaxismust be trimmed to sizen.If
nequalsM, all elements along the axis specified byaxismust 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), whereNis the rank (number of dimensions) ofx. If anaxisis 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 by1/n.'ortho': normalize by1/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 a complex floating-point data type whose precision matches the precision ofx(e.g., ifxisfloat64, then the returned array must have acomplex128data type). The returned array must have the same shape asx, except for the axis specified byaxiswhich must have sizen//2 + 1.
Notes
New in version 2022.12.