tf.compat.v1.math.bessel_i0  |  TensorFlow v2.16.1 (original) (raw)

Computes the Bessel i0 function of x element-wise.

View aliases

Compat aliases for migration

SeeMigration guide for more details.

tf.compat.v1.math.special.bessel_i0

tf.compat.v1.math.bessel_i0(
    x, name=None
)

Modified Bessel function of order 0.

It is preferable to use the numerically stabler function i0e(x) instead.

tf.math.special.bessel_i0([-1., -0.5, 0.5, 1.]).numpy() array([1.26606588, 1.06348337, 1.06348337, 1.26606588], dtype=float32)

Args
x A Tensor or SparseTensor. Must be one of the following types: half,float32, float64.
name A name for the operation (optional).
Returns
A Tensor or SparseTensor, respectively. Has the same type as x.

scipy compatibility

Equivalent to scipy.special.i0