mindspore/docs/api/api_python/ops/mindspore.ops.func_slogdet.rst

20 lines
949 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.ops.slogdet
=====================
.. py:function:: mindspore.ops.slogdet(x)
对一个或多个方阵行列式的绝对值取对数,返回其符号和值。
参数:
- **x** (Tensor) - 输入Tensorshape为 :math:`[..., M, M]` 。矩阵必须至少有两个维度最后两个维度尺寸必须相同。支持的数据类型为float32、float64、complex64或complex128。
返回:
- Tensor行列式的绝对值的对数的符号shape为 `x.shape[:-2]` ,数据类型与 `x` 相同。
- Tensor行列式的绝对值的对数shape为 `x.shape[:-2]` ,数据类型与 `x` 相同。
异常:
- **TypeError** - `x` 不为 Tensor。
- **TypeError** - `x` 的数据类型不为以下类型float32、 float64、 complex64 和 complex128。
- **ValueError** - `x` 的最后两个维度大小不同。
- **ValueError** - `x` 的维数小于2。