mindspore/docs/api/api_python/ops/mindspore.ops.MatrixLogarit...

20 lines
716 B
ReStructuredText
Raw Permalink Normal View History

2022-11-14 18:10:38 +08:00
mindspore.ops.MatrixLogarithm
=============================
.. py:class:: mindspore.ops.MatrixLogarithm
返回一个或多个方阵的矩阵对数。
输入:
- **x** (Tensor) - `x` 是一个Tensor。Tensor的shape为 :math:`[..., M, M]`
其数据类型必须为complex64或complex128。同时其shape必须为2D到7D。
输出:
- **y** (Tensor) - 与输入的shape和数据类型均相同。
异常:
- **TypeError** - 如果 `x` 不是Tensor。
2022-11-22 17:33:37 +08:00
- **TypeError** - 如果 `x` 的数据类型不是complex64或complex128。
2022-11-14 18:10:38 +08:00
- **ValueError** - 如果 `x` 的维度小于2。
- **ValueError** - 如果内部的两维不相等。