mindspore.ops.zeta
- mindspore.ops.zeta(input, other)[source]
Elemental-wise compute the Hurwitz zeta output.
\[\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
- Returns
Tensor, The result of Hurwitz zeta function.
- Raises
- Supported Platforms:
Ascend
GPU
CPU
Examples
>>> x = Tensor(np.array([10.]), mindspore.float32) >>> q = Tensor(np.array([1.]), mindspore.float32) >>> z = ops.zeta(x, q) >>> print(z) [1.0009946]