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

20 lines
512 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:function:: mindspore.ops.polar(abs, angle)
将极坐标转化为笛卡尔坐标。
返回一个复数tensor其元素是由输入极坐标构造的笛卡尔坐标。其中极坐标由极径 `abs` 和极角 `angle` 给定。
.. math::
y_{i} = abs_{i} * \cos(angle_{i}) + abs_{i} * \sin(angle_{i}) * j
参数:
- **abs** (Tensor, float) - 极径。
- **angle** (Tensor, float) - 极角。
返回:
Tensor