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

16 lines
472 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.logdet
=====================
.. py:function:: mindspore.ops.logdet(x)
计算方块矩阵或批量方块矩阵的对数行列式。
参数:
- **x** (Tensor) - 任意维度的Tensor。
返回:
Tensor`x` 的对数行列式。如果行列式小于0则返回nan。如果行列式等于0则返回-inf。
异常:
- **TypeError** - 如果 `x` 的dtype不是float32、float64、Complex64或Complex128。