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

27 lines
856 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)值。
.. warning::
此接口是试验性的原型接口,可能会被删除/修改。
.. math::
\zeta \left ( x,q \right )= \textstyle \sum_{n=0} ^ {\infty} \left ( q+n\right )^{-x}
输入:
- **x** (Tensor) - Tensor数据类型为float32、float64。
- **q** (Tensor) - Tensor数据类型与 `x` 一致。
输出:
Tensor数据类型和shape与输入shape相同。
异常:
- **TypeError** - `x``q` 不是Tensor。
- **TypeError** - `x` 的数据类型既不是float32也不是float64。
- **TypeError** - `q` 的数据类型既不是float32也不是float64。
- **ValueError** - `x``q` 的shape不同。