mindspore/docs/api/api_python/ops/mindspore.ops.MatrixInverse...

28 lines
1.0 KiB
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.MatrixInverse
============================
.. py:class:: mindspore.ops.MatrixInverse(adjoint=False)
计算输入矩阵的逆矩阵。如果输入矩阵不可逆,将产生错误或者返回一个未知结果。
.. note::
参数 `adjoint` 目前只支持 ``False`` ,因为目前该算子不支持复数。
.. warning::
这是一个实验性API后续可能修改或删除。
参数:
- **adjoint** (bool) - 指定是否支持复数, ``False`` 表示为不支持复数。默认值: ``False``
输入:
- **x** (Tensor) - 输入需计算的矩阵至少为二维矩阵且最后两个维度大小相同数据类型为float32、float64。
输出:
Tensor数据类型和shape与输入 `x` 相同。
异常:
- **TypeError** - `adjoint` 不是bool。
- **TypeError** - `x` 的数据类型既不是float32也不是float64。
- **ValueError** - `x` 最后两个维度大小不同。
- **ValueError** - `x` 低于二维。