i0#
- ivy.i0(x, /, *, out=None)[source]#
Compute the Bessel i0 function of x element-wise.
- Parameters:
- Return type:
- Returns:
ret – Array with the modified Bessel function evaluated at each of the elements of x.
Examples
>>> x = ivy.array([1, 2, 3]) >>> ivy.i0(x) ivy.array([1.26606588, 2.2795853 , 4.88079259])
- Array.i0(self, /, *, out=None)[source]#
ivy.Array instance method variant of ivy.i0. This method simply wraps the function, and so the docstring for ivy.i0 also applies to this method with minimal changes.
- Parameters:
self (
Array
) – Input array.out (
Optional
[Array
], default:None
) – Optional output, for writing the result to.
- Return type:
Array
- Returns:
ret – Array with modified Bessel function of the first kind, order 0.
Examples
>>> x = ivy.array([[1, 2, 3]]) >>> x.i0() ivy.array([1.26606588, 2.2795853 , 4.88079259])
- Container.i0(self, /, *, out=None)[source]#
ivy.Container instance method variant of ivy.i0. This method simply wraps the function, and so the docstring for ivy.i0 also applies to this method with minimal changes.
- Parameters:
self (
Container
) – the container with array inputs.out (
Optional
[Container
], default:None
) – optional output container, for writing the result to.
- Return type:
Container
- Returns:
ret – container including arrays with the modified Bessel function evaluated at each of the elements of x.
Examples
With one
ivy.Container
input:>>> x = ivy.Container(a=ivy.array([1, 2, 3]), b=ivy.array(4)) >>> x.i0() { a: ivy.array([1.26606588, 2.2795853 , 4.88079259]) b: ivy.array(11.30192195) }