# 矩阵的伪逆（Pseudoinverse of a matrix，pseudo_inverse）

矩阵的 Moore-Penrose 伪逆。

## 怎么写

### pseudo_inverse(matrix)

**matrix**

一个矩阵，写成行列表。接受一个矩阵，写作行组成的列表。

## 示例

- $\displaystyle \operatorname{pseudo\_inverse}\left(\begin{pmatrix} 1 & 2 \\ 2 & 4 \end{pmatrix}\right) = \begin{pmatrix} \frac{1}{25} & \frac{2}{25} \\ \frac{2}{25} & \frac{4}{25} \end{pmatrix}$

  `pseudo_inverse([[1, 2], [2, 4]])`

  在求解器中，`pseudo_inverse([[1, 2], [2, 4]])` 的结果是 `[[1/25, 2/25], [2/25, 4/25]]`。

  [在求解器中打开](https://zh.hilberon.com/?q=pseudo_inverse%28%5B%5B1%2C%202%5D%2C%20%5B2%2C%204%5D%5D%29)

## 相关函数

- [inverse](https://zh.hilberon.com/library/inverse)

  方阵的逆矩阵。
- [qr_decomposition](https://zh.hilberon.com/library/qr_decomposition)

  矩阵的 QR 分解：一个正交因子和一个上三角因子。
- [orthogonalize](https://zh.hilberon.com/library/orthogonalize)

  通过 Gram-Schmidt 过程得到的一组标准正交向量，张成与给定向量相同的空间。
- [rank](https://zh.hilberon.com/library/rank)

  矩阵的秩：线性无关的行数。
- [null_space](https://zh.hilberon.com/library/null_space)

  矩阵零空间的一组基：满足 A v = 0 的向量 v。
- [row_reduce](https://zh.hilberon.com/library/row_reduce)

  矩阵的行简化阶梯形。

---
Source: https://zh.hilberon.com/library/pseudo_inverse
