mindspore.ops.zeta

View Source On Gitee
mindspore.ops.zeta(input, other)[source]

Elemental-wise compute the Hurwitz zeta function values.

\[\zeta(x, q) = \sum_{k=0}^{\infty} \frac{1}{(k + q)^x}\]

Warning

This is an experimental API that is subject to change or deletion.

Parameters
  • input (Union[Tensor, int, float]) – The first input tensor. Represented as \(x\) in the formula.

  • other (Union[Tensor, int, float]) – The second input tensor. Represented as \(q\) in the formula.

Returns

Tensor

Supported Platforms:

Ascend GPU CPU

Examples

>>> import mindspore
>>> z = mindspore.ops.zeta(mindspore.tensor([10.]), mindspore.tensor([1.]))
>>> print(z)
[1.0009946]