mindspore.ops.lu_solve ====================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/br_base/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/br_base/docs/api/api_python/ops/mindspore.ops.func_lu_solve.rst :alt: 查看源文件 .. py:function:: mindspore.ops.lu_solve(b, LU_data, LU_pivots) 计算线性方程组 :math:`Ay = b` 的LU解。 .. note:: - `b` 的shape为 :math:`(*, m, k)` , `LU_data` 的shape为 :math:`(*, m, m)` , `LU_pivots` 的shape为 :math:`(*, m)` ,:math:`*` 表示batch数量。 .. warning:: 这是一个实验性API,后续可能修改或删除。 参数: - **b** (Tensor) - 上面公式的列向量 `b` 。 - **LU_data** (Tensor) - LU分解的结果,上面公式中的 `A` 。 - **LU_pivots** (Tensor) - LU分解的主元,主元可以被转为变换矩阵P。 返回: Tensor