mindspore.ops.bessel_k0

View Source On Gitee
mindspore.ops.bessel_k0(x)[source]

Computes the zeroth order modified Bessel function of the second kind for each element input.

\[\begin{split}\begin{array}{ll} \\ K_{0}(x)= \lim_{\nu \to 0} \left(\frac{\pi}{2}\right) \frac {I_{-\nu}(x)-I_{\nu}(x)}{\sin (\nu \pi)} = \int_{0}^{\infty} e^{-x \cosh t} d t \end{array}\end{split}\]
Parameters

x (Tensor) – The input tensor.

Returns

Tensor

Supported Platforms:

GPU CPU

Examples

>>> import mindspore
>>> x = mindspore.tensor([0.5, 1., 2., 4.])
>>> output = mindspore.ops.bessel_k0(x)
>>> print(output)
[0.92441907  0.42102444  0.11389387  0.01115968]