mindspore/docs/api/api_python/ops/mindspore.ops.Polar.rst

25 lines
805 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.ops.Polar
====================
.. py:class:: mindspore.ops.Polar
将极坐标转化为笛卡尔坐标。
返回一个复数Tensor其元素是由输入极坐标构造的笛卡尔坐标。其中极坐标由极径 `abs` 和极角 `angle` 给定。
更多细节请参考 :func:`mindspore.ops.polar`
.. math::
y_{i} = abs_{i} * \cos(angle_{i}) + abs_{i} * \sin(angle_{i}) * j
.. warning::
这是一个实验性API后续可能修改或删除。
输入:
- **abs** (Tensor, float) - 极径其输入shape可以是任意维度其数据类型须为float32。
- **angle** (Tensor, float) - 极角其shape和数据类型与 `abs` 一致。
输出:
Tensor其shape与 `abs` 一致dtype是complex64。