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

23 lines
1.0 KiB
ReStructuredText
Raw 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.Geqrf
===================
.. py:class:: mindspore.ops.Geqrf
用于计算QR分解的低级函数。此函数返回两个Tensorytau
计算 `x` 的QR分解。 `Q``R` 矩阵都存储在同一个输出Tensor `y` 中。
`R` 的元素存储在对角线及上方。隐式定义矩阵 `Q` 的基本反射器(或户主向量)存储在对角线下方。
输入:
- **x** (Tensor) - shape为 :math:`(*, m, n)` 输入矩阵维度必须为大于等于两维支持dtype为float32、float64、complex64、complex128。
输出:
- **y** (Tensor) - shape为 :math:`(*, m, n)` ,与 `x` 具有相同的dtype。
- **tau** (Tensor) - shape为 :math:`(*, p,)` ,并且 :math:`p = min(m, n)` ,与 `x` 具有相同的dtype。
异常:
- **TypeError** - 如果 `x` 不是一个Tensor。
- **TypeError** - 如果 `x` 的dtype不是float32、float64、complex64、complex128中的一个。
- **ValueError** - 如果 `x` 的维度小于2。