mindspore/docs/api/api_python/numpy/mindspore.numpy.fft.rfft.rst

17 lines
1022 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.numpy.fft.rfft
=========================
.. py:function:: mindspore.numpy.fft.rfft(a, n=None, axis=-1, norm=None)
计算实数输入 `a` 的一维离散傅里叶变换。
参见 :func:`mindspore.ops.rfft` 获取更多详情。不同之处在于 `a` 对应 `input` , `axis` 对应 `dim`
参数:
- **a** (Tensor) - 输入Tensor。
- **n** (int, 可选) - 输入中沿 `axis` 所使用的数据点的数量。 如果给定,在计算 `rfft` 之前, `axis` 轴的大小将进行零填充或截断为 `n` 。默认值: ``None``
- **axis** - (int, 可选) - 计算 `rfft` 的轴。 默认: ``-1`` ,表示使用 `a` 的最后一个轴。
- **norm** (str, 可选) - 归一化模式。 默认值: ``None`` ,表示 ``"backward"`` 。 三种模式的定义如下, ``"backward"`` (无归一化) ``"forward"`` (按 :math:`1/n` 归一化) ``"ortho"`` (按 :math:`1/\sqrt{n}` 归一化)。
返回:
Tensor `rfft()` 函数的结果。