mindspore/docs/api/api_python/mint/mindspore.mint.linalg.inv.rst

18 lines
579 B
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.mint.linalg.inv
=========================
.. py:function:: mindspore.mint.linalg.inv(input)
计算输入矩阵的逆。
参数:
- **input** (Tensor) - 计算的矩阵。`input` 至少是两维的,最后两个维度大小相同,并且矩阵需要可逆。
返回:
Tensor其类型和shape与 `input` 相同。
异常:
- **ValueError** - `input` 最后两个维度的大小不相同。
- **ValueError** - `input` 不是空并且它的维度小于2维。
- **ValueError** - `input` 的维度大于6