mindspore.ops.bessel_k1
=======================

.. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.3.1/resource/_static/logo_source.svg
    :target: https://gitee.com/mindspore/mindspore/blob/r2.3.1/docs/api/api_python/ops/mindspore.ops.func_bessel_k1.rst
    :alt: 查看源文件


.. py:function:: mindspore.ops.bessel_k1(x)

    逐元素计算第二类一阶修正Bessel函数值。

    计算公式定义如下:

    .. math::
        \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}

    其中 :math:`I_{1}` 是第一类一阶修正Bessel函数。

    参数:
        - **x** (Tensor) - Tensor的输入。数据类型应为float16,float32或float64。

    返回:
        Tensor,shape和数据类型与 `x` 相同。

    异常:
        - **TypeError** - `x` 不是Tensor。
        - **TypeError** - `x` 的数据类型不是float16,float32或float64。