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

23 lines
969 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.eig
==================
.. py:function:: mindspore.ops.eig(A)
计算输入方阵batch方阵的特征值和特征向量。
.. warning::
这是一个实验性API后续可能修改或删除。
参数:
- **A** (Tensor) - 方阵。shape为 :math:`(*, N, N)`,数据类型支持\
float32、float64、complex64、complex128。
返回:
- **eigen_values** (Tensor) - shape为 :math:`(*, N)`,其中的每个向量代表对应矩阵的特征值,特征值之间没有顺序关系。
- **eigen_vectors** (Tensor) - shape为 :math:`(*, N, N)` 的Tensor。其列表示相应特征值的规范化单位长度特征向量。
异常:
- **TypeError** - 如果 `A` 的数据类型不是float32、float64、complex64或者complex128。
- **TypeError** - 如果 `A` 不是一个Tensor。
- **ValueError** - 如果 `A` 不是一个方阵batch方阵