i1

paddle. i1 ( x, name=None ) [source]

The function is used to calculate modified bessel function of order 1.

Parameters
  • x (Tensor) – The input tensor, it’s data type should be float32, float64.

  • name (str, optional) – For details, please refer to Name. Generally, no setting is required. Default: None.

Returns

  • out (Tensor), A Tensor. the value of the modified bessel function of order 1 at x.

Examples

>>> import paddle

>>> x = paddle.to_tensor([0, 1, 2, 3, 4], dtype="float32")
>>> print(paddle.i1(x))
Tensor(shape=[5], dtype=float32, place=Place(cpu), stop_gradient=True,
[0.        , 0.56515908, 1.59063685, 3.95337057, 9.75946712])