Computes the inverse of `rfft2`. Parameters ---------- a : array_like The input array s : sequence of ints, optional Shape of the real output to the inverse FFT. .. versionchanged:: 2.0 If it is ``-1``, the whole input is used (no padding/t
(a, s=None, axes=(-2, -1), norm=None, out=None)
| 1611 | |
| 1612 | @array_function_dispatch(_fftn_dispatcher) |
| 1613 | def irfft2(a, s=None, axes=(-2, -1), norm=None, out=None): |
| 1614 | """ |
| 1615 | Computes the inverse of `rfft2`. |
| 1616 | |
| 1617 | Parameters |
| 1618 | ---------- |
| 1619 | a : array_like |
| 1620 | The input array |
| 1621 | s : sequence of ints, optional |
| 1622 | Shape of the real output to the inverse FFT. |
| 1623 | |
| 1624 | .. versionchanged:: 2.0 |
| 1625 | |
| 1626 | If it is ``-1``, the whole input is used (no padding/trimming). |
| 1627 | |
| 1628 | .. deprecated:: 2.0 |
| 1629 | |
| 1630 | If `s` is not ``None``, `axes` must not be ``None`` either. |
| 1631 | |
| 1632 | .. deprecated:: 2.0 |
| 1633 | |
| 1634 | `s` must contain only ``int`` s, not ``None`` values. ``None`` |
| 1635 | values currently mean that the default value for ``n`` is used |
| 1636 | in the corresponding 1-D transform, but this behaviour is |
| 1637 | deprecated. |
| 1638 | |
| 1639 | axes : sequence of ints, optional |
| 1640 | The axes over which to compute the inverse fft. |
| 1641 | Default: ``(-2, -1)``, the last two axes. |
| 1642 | |
| 1643 | .. deprecated:: 2.0 |
| 1644 | |
| 1645 | If `s` is specified, the corresponding `axes` to be transformed |
| 1646 | must not be ``None``. |
| 1647 | |
| 1648 | norm : {"backward", "ortho", "forward"}, optional |
| 1649 | Normalization mode (see `numpy.fft`). Default is "backward". |
| 1650 | Indicates which direction of the forward/backward pair of transforms |
| 1651 | is scaled and with what normalization factor. |
| 1652 | |
| 1653 | .. versionadded:: 1.20.0 |
| 1654 | |
| 1655 | The "backward", "forward" values were added. |
| 1656 | |
| 1657 | out : ndarray, optional |
| 1658 | If provided, the result will be placed in this array. It should be |
| 1659 | of the appropriate shape and dtype for the last transformation. |
| 1660 | |
| 1661 | .. versionadded:: 2.0.0 |
| 1662 | |
| 1663 | Returns |
| 1664 | ------- |
| 1665 | out : ndarray |
| 1666 | The result of the inverse real 2-D FFT. |
| 1667 | |
| 1668 | See Also |
| 1669 | -------- |
| 1670 | rfft2 : The forward two-dimensional FFT of real input, |
nothing calls this directly
no test coverage detected
searching dependent graphs…