dpnp.i0

dpnp.i0 = <DPNPUnaryFunc 'i0'>

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 a real-valued floating-point data type.

out{None, dpnp.ndarray, usm_ndarray, tuple of ndarray}, optional

Output array to populate. Array must have the correct shape and the expected data type. A tuple (possible only as a keyword argument) must have length equal to the number of outputs.

Default: None.

order{None, "C", "F", "A", "K"}, optional

Memory layout of the newly output array, if parameter out is None.

Default: "K".

Returns:
outdpnp.ndarray

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.

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])