19 lines
781 B
ReStructuredText
19 lines
781 B
ReStructuredText
mindspore.ops.det
|
||
=================
|
||
|
||
.. py:function:: mindspore.ops.det(input)
|
||
|
||
计算一个或多个方阵的行列式。
|
||
|
||
参数:
|
||
- **input** (Tensor) - 输入Tensor,shape 为 :math:`[..., M, M]` 。矩阵必须至少有两个维度,最后两个维度尺寸必须相同。支持的数据类型为float32、float64、complex64或complex128。
|
||
|
||
返回:
|
||
Tensor,其shape为 :math:`input.shape[:-2]` ,数据类型与 `input` 相同。
|
||
|
||
异常:
|
||
- **TypeError** - `input` 不为 Tensor。
|
||
- **TypeError** - `input` 的数据类型不为以下类型:float32、float64、complex64和complex128。
|
||
- **ValueError** - `input` 的最后两个维度大小不同。
|
||
- **ValueError** - `input` 的维数小于2。
|