zeta#
- ivy.zeta(x, q, /, *, out=None)[source]#
Compute the Hurwitz zeta function elementwisely with each pair of floats in two arrays.
- Parameters:
- Return type:
bool
- Returns:
ret – Array with values computed from zeta function from input arrays’ values.
Examples
>>> x = ivy.array([5.0, 3.0]) >>> q = ivy.array([2.0, 2.0]) >>> ivy.zeta(x, q) ivy.array([0.0369, 0.2021])
- Array.zeta(self, q, /, *, out=None)[source]#
ivy.Array instance method variant of ivy.zeta. This method simply wraps the function, and so the docstring for ivy.zeta also applies to this method with minimal changes.
- Parameters:
self (
Array
) – First input array.q (
Array
) – Second input array.out (
Optional
[Array
], default:None
) – Alternate output array in which to place the result. The default is None.
- Return type:
Array
- Returns:
ret – Array with values computed from zeta function from input arrays’ values.
Examples
>>> x = ivy.array([5.0, 3.0]) >>> q = ivy.array([2.0]) >>> x.zeta(q) ivy.array([0.0369, 0.2021])
- Container.zeta(self, q, /, *, key_chains=None, to_apply=True, prune_unapplied=False, map_sequences=False, out=None)[source]#
ivy.Container instance method variant of ivy.zeta. This method simply wraps the function, and so the docstring for ivy.zeta also applies to this method with minimal changes.
- Parameters:
self (
Container
) – Input container containing first input array.q (
Container
) – Input container containing second input array.key_chains (
Optional
[Union
[List
[str
],Dict
[str
,str
],Container
]], default:None
) – The key-chains to apply or not apply the method to. Default isNone
.to_apply (
Union
[bool
,Container
], default:True
) – If True, the method will be applied to key_chains, otherwise key_chains will be skipped. Default isTrue
.prune_unapplied (
Union
[bool
,Container
], default:False
) – Whether to prune key_chains for which the function was not applied. Default isFalse
.map_sequences (
Union
[bool
,Container
], default:False
) – Whether to also map method to sequences (lists, tuples). Default isFalse
.out (
Optional
[Container
], default:None
) – Alternate output array in which to place the result. The default is None.
- Return type:
Container
- Returns:
ret – container including the zeta function computed element-wise
Examples
>>> x = ivy.Container(a=ivy.array([5.0, 3.0]), ... b=ivy.array([2.0, 1.0]) >>> q = ivy.Container(a=ivy.array([2.0]), ... b=ivy.array([5.0])) >>> x.zeta(q) { a: ivy.array([0.0369, 0.2021]), b: ivy.array([0.0006, 0.0244]) }