# orthogonalize 函数

通过 Gram-Schmidt 过程得到的一组标准正交向量，张成与给定向量相同的空间。

## 怎么写

### orthogonalize(vectors)

**vectors**

这些向量，按行排列。接受一个矩阵，写作行组成的列表。

## 示例

- $\displaystyle \operatorname{orthogonalize}\left(\begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}\right) = \begin{pmatrix} \frac{\sqrt{2}}{2} & \frac{\sqrt{2}}{2} \\ -\frac{\sqrt{2}}{2} & \frac{\sqrt{2}}{2} \end{pmatrix}$

  `orthogonalize([[1, 1], [0, 1]])`

  在求解器中，`orthogonalize([[1, 1], [0, 1]])` 的结果是 `[[sqrt(2)/2, sqrt(2)/2], [-sqrt(2)/2, sqrt(2)/2]]`。

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

## 相关函数

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

  矩阵的 Moore-Penrose 伪逆。
- [null_space](https://zh.hilberon.com/library/null_space)

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

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

  缩放为长度 1 的向量。
- [rank](https://zh.hilberon.com/library/rank)

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

  向量的长度。

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