mindspore.ops.bessel_k1
- mindspore.ops.bessel_k1(x)[source]
Computes the first order modified Bessel function of the second kind for each element input.
\[\begin{split}\begin{array}{ll} \\ K_{1}(x)=\lim_{\nu \to 1} \left(\frac{\pi}{2}\right) \frac{I_{-\nu}(x)- I_{\nu}(x)}{\sin (\nu \pi)} = \int_{0}^{\infty} e^{-x \cosh t} \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_k1(x) >>> print(output) [1.65644112 0.60190723 0.13986588 0.0124835]