dpnp.i0
- dpnp.i0(x, out=None, order='K')
Modified Bessel function of the first kind, order 0.
Usually denoted \(I_0\).
For full documentation refer to
numpy.i0
.- Parameters:
x ({dpnp.ndarray, usm_ndarray}) -- Argument of the Bessel function, expected to have floating-point data type.
out ({None, dpnp.ndarray, usm_ndarray}, optional) -- Output array to populate. Array must have the correct shape and the expected data type. Default:
None
.order ({"C", "F", "A", "K"}, optional) -- Memory layout of the newly output array, if parameter out is
None
. Default:"K"
.
- Returns:
out -- The modified Bessel function evaluated at each of the elements of x. If the input is of either boolean or integer data type, the returned array will have the default floating point data type of a device where x has been allocated. Otherwise the returned array has the same data type.
- Return type:
dpnp.ndarray
Examples
>>> import dpnp as np >>> np.i0(np.array(0.0)) array(1.) >>> np.i0(np.array([0, 1, 2, 3])) array([1. , 1.26606588, 2.2795853 , 4.88079259])