xorbits.numpy.fft.irfft2#
- xorbits.numpy.fft.irfft2(a, s=None, axes=(- 2, - 1), norm=None)[源代码]#
Computes the inverse of rfft2.
- 参数
a (array_like) – The input array
s (sequence of ints, optional) – Shape of the real output to the inverse FFT.
axes (sequence of ints, optional) – The axes over which to compute the inverse fft. Default is the last two axes.
norm ({"backward", "ortho", "forward"}, optional) –
1.10.0(numpy.fft) 新版功能.
Normalization mode (see numpy.fft). Default is “backward”. Indicates which direction of the forward/backward pair of transforms is scaled and with what normalization factor.
1.20.0(numpy.fft) 新版功能: The “backward”, “forward” values were added.
- 返回
out – The result of the inverse real 2-D FFT.
- 返回类型
ndarray
参见
提示
This is really irfftn with different defaults. For more details see irfftn.
实际案例
>>> a = np.mgrid[:5, :5][0] >>> A = np.fft.rfft2(a) >>> np.fft.irfft2(A, s=a.shape) array([[0., 0., 0., 0., 0.], [1., 1., 1., 1., 1.], [2., 2., 2., 2., 2.], [3., 3., 3., 3., 3.], [4., 4., 4., 4., 4.]])
This docstring was copied from numpy.fft.