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

27 lines
840 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.Zeta
===================
.. py:class:: mindspore.ops.Zeta
计算输入Tensor的Hurwitz zeta函数ζ(x,q)值。
.. math::
\zeta \left ( x,q \right )= \textstyle \sum_{n=0} ^ {\infty} \left ( q+n\right )^{-x}
.. warning::
这是一个实验性API后续可能修改或删除。
输入:
- **x** (Tensor) - Tensor数据类型为float32、float64。
- **q** (Tensor) - Tensor数据类型与 `x` 一致。
输出:
Tensor数据类型和shape与 `x` 相同。
异常:
- **TypeError** - `x``q` 不是Tensor。
- **TypeError** - `x` 的数据类型既不是float32也不是float64。
- **TypeError** - `q` 的数据类型既不是float32也不是float64。
- **ValueError** - `x``q` 的shape不同。