bessel_i0e

Contents

bessel_i0e#

class brainunit.lax.bessel_i0e(x, unit_to_scale=None, **kwargs)#

Exponentially scaled modified Bessel function of order 0: \(\mathrm{i0e}(x) = e^{-|x|} \mathrm{i0}(x)\).

Parameters:
  • x (saiunit.Quantity | Array | ndarray | bool | number | bool | int | float | complex) – Input array. Must be dimensionless or scaled via unit_to_scale.

  • unit_to_scale (saiunit.Unit | None) – If provided, x is scaled by this unit before applying the function.

Returns:

result – Always unitless.

Return type:

Array

Examples

>>> import saiunit.lax as sulax
>>> import jax.numpy as jnp
>>> sulax.bessel_i0e(jnp.array([0.0, 1.0, 2.0]))
Array([1.        , 0.46575963, 0.30850834], dtype=float32)