# Cholesky分解

**Cholesky分解**是将对称正定矩阵A分解为A = R^T R的因式分解，其中R为上三角矩阵且对角元素为正；对每个这样的矩阵，该分解存在且唯一。<sup>[1](https://www.math.drexel.edu/~tolya/Higham_Cholesky.pdf)</sup> 一个对称的n × n矩阵是正定的，当且仅当对每个非零向量x，二次型x^T A x为正，等价地，当其所有特征值均为正时。<sup>[1](https://www.math.drexel.edu/~tolya/Higham_Cholesky.pdf)</sup> 该分解以安德烈-路易·Cholesky（André-Louis Cholesky，1875–1918）命名，他是一位法国军事大地测量学家，为求解系数矩阵对称正定的线性方程组而设计了这个方法。<sup>[2](https://publimath.fr/apl93024/)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 对对称正定矩阵A，存在唯一分解A = R^T R（或A = L L^T），其中R为上三角矩阵且对角元素为正。<sup>[1](https://www.math.drexel.edu/~tolya/Higham_Cholesky.pdf)</sup> |
| 创始人 | 安德烈-路易·Cholesky（1875–1918），军事大地测量学家；他解释该方法的文稿一直不为人知，直到以现代版本完整再现原文并追溯该方法传播的出版物问世。<sup>[3](https://doi.org/10.1016/j.hm.2010.06.003)</sup><sup> • </sup><sup>[4](https://www.numdam.org/articles/10.24033/rhm.30/)</sup> |
| 稳定性 | 对对称正定矩阵，稳定性不需要选主元，且该分解是无条件向后稳定的。<sup>[5](https://link.springer.com/chapter/10.1007/978-3-031-25820-6_7)</sup> |
| 半正定情形 | 采用完全选主元时，Cholesky算法对秩较小的半正定矩阵是稳定的，但一般情形下无法保证稳定性。<sup>[6](https://eprints.maths.manchester.ac.uk/1193/)</sup> |
| 不定情形 | Cholesky分解对对称不定矩阵失效，此时可能需要求负数的平方根或除以零。<sup>[7](https://www.cs.ubc.ca/~rbridson/courses/542g-fall-2008/notes-sept29.pdf)</sup> |
| 与LU的关系 | 从LU分解中提取U的对角部分并取平方根，即可将其转化为A = R^T R。<sup>[8](https://epubs.siam.org/doi/10.1137/1.9780898718027.ch10)</sup> |
| 软件 | LAPACK风格的例程如potrf和dposv实现了该分解；Intel oneMKL于2025年针对Intel Arc GPU改进了批量Cholesky分解（potrf_batch）。<sup>[9](https://www.intel.com/content/www/us/en/developer/articles/release-notes/onemkl/2025.html)</sup> |

## 定义与性质

正定矩阵总可以写成A = X^T X的形式，其中X为非奇异矩阵；Cholesky分解是X为上三角矩阵且对角元素为正的特殊情形，通常写作A = R^T R或A = L L^T。<sup>[1](https://www.math.drexel.edu/~tolya/Higham_Cholesky.pdf)</sup> 唯一性通过对前主子矩阵进行归纳得到：正定矩阵的前(n − 1) × (n − 1)子矩阵本身也是正定的，并有其自身的唯一Cholesky分解。<sup>[8](https://epubs.siam.org/doi/10.1137/1.9780898718027.ch10)</sup>

该分解与高斯消元法密切相关。由于A是对称的，LU分解满足U = D L^T，其中D为正对角矩阵，对对角线元素取平方根即将LU转化为Cholesky形式A = R^T R。<sup>[8](https://epubs.siam.org/doi/10.1137/1.9780898718027.ch10)</sup>

## 历史

安德烈-路易·Cholesky设计了他的消元方法来求解系数矩阵对称正定的线性方程组；一项历史研究将其描述为第一个为机器设计的算法，并展示了Cholesky可能如何组织计算，以如今被称为Cholesky分解的方法求解正规方程。<sup>[3](https://doi.org/10.1016/j.hm.2010.06.003)</sup> Cholesky在第一次世界大战中阵亡，留下了一份解释该方法的文稿，这份文稿一直不为人知，直到以现代版本完整再现原文并追溯该方法传播的出版物问世。<sup>[4](https://www.numdam.org/articles/10.24033/rhm.30/)</sup><sup> • </sup><sup>[2](https://publimath.fr/apl93024/)</sup>

## 数值稳定性

稳定性是Cholesky分解与通用因式分解之间最显著的区别。对对称正定矩阵A，稳定性不需要选主元，且Cholesky分解是无条件向后稳定的；这一点，连同一般矩阵采用部分选主元的LU分解的有条件的向后稳定性，使得基于因式分解的求解器优于显式构造并应用A^{-1}。<sup>[5](https://link.springer.com/chapter/10.1007/978-3-031-25820-6_7)</sup> 在精确算术中，该分解对每个对称正定矩阵无需选主元即可存在。<sup>[7](https://www.cs.ubc.ca/~rbridson/courses/542g-fall-2008/notes-sept29.pdf)</sup>

对于对称但非正定的矩阵，情况则不同。此时算法可能需要求负数的平方根或除以零，因此通常需要某种形式的选主元。<sup>[7](https://www.cs.ubc.ca/~rbridson/courses/542g-fall-2008/notes-sept29.pdf)</sup>

## 半正定矩阵

半正定矩阵可以是奇异的，朴素的Cholesky算法可能在其上失效。标准的补救措施是完全选主元，即在每一步选择剩余子矩阵中最大的对角元素作为下一个主元。对这一变体的分析得出结论：采用完全选主元的Cholesky算法对半正定矩阵是稳定的。<sup>[6](https://eprints.maths.manchester.ac.uk/1193/)</sup>

该稳定性结论带有附加条件。将半正定矩阵写成包含项W的形式，采用完全选主元的算法在r（秩）较小时是稳定的，但如果W的范数很大——从而必然r和n也很大——则无法保证稳定性，且在实践中似乎不太可能稳定。<sup>[10](https://pages.stat.wisc.edu/~bwu62/771/hingham2002.pdf)</sup> 一个实际问题是何时停止分解：LINPACK例程xCHDC持续进行直到遇到非正主元，即进行到第k − 1步，其中k是出现此类主元的最小整数。<sup>[10](https://pages.stat.wisc.edu/~bwu62/771/hingham2002.pdf)</sup>

## 结构化与稀疏变体

可以利用矩阵的结构来降低计算成本。对一个秩为r的n × n半正定Toeplitz矩阵，Schur算法通过将Cholesky因子截断到前r行，以O(nr)次运算计算出分解T = C_r C_r^T，其中C_11是一个r × r上三角块。该算法在有限定的意义上是稳定的：向后误差界仅依赖于n和r，与前r × r子矩阵T_11的条件数无关，但它们随r呈指数增长。<sup>[11](https://www.sciencedirect.com/science/article/pii/S0024379596005174)</sup> 对位移秩为2的对称正定Toeplitz矩阵，Bareiss算法已通过舍入误差分析证明是稳定的。<sup>[12](https://epubs.siam.org/doi/abs/10.1137/S0895479891221563)</sup>

对大型稀疏或稠密核矩阵，近似因式分解以牺牲精确性来降低成本：一种方法通过在稀疏性约束下最小化两个高斯分布之间的Kullback-Leibler散度来计算稀疏近似逆Cholesky因子，从而使高斯过程回归具有关于N的线性空间复杂度。<sup>[13](https://arxiv.org/abs/2004.14455)</sup> 块Cholesky分解为从高斯过程数据估计的大型精度矩阵的稀疏Cholesky分解的复杂度界提供了基础。<sup>[14](https://arxiv.org/abs/2412.08820)</sup>

## 应用

最常见的用途是在A为对称正定时求解线性方程组Ax = b：利用这些因子可以低成本地通过代入求解三角方程组，而该分解的无条件向后稳定性使这一方法优于显式计算A^{-1}。<sup>[5](https://link.springer.com/chapter/10.1007/978-3-031-25820-6_7)</sup>

在统计学和机器学习中，Cholesky因子充当矩阵平方根。

最小二乘问题构成另一类应用。正规方程的Cholesky分解在最小二乘问题秩亏时失效，而对增广系统应用对称不定求解器可能在因子中产生不可接受的填充；一种修改未正则化矩阵对角线的正则化过程可得到更易于分解的矩阵。<sup>[15](https://epubs.siam.org/doi/10.1137/16M1065380)</sup>

## 软件

Cholesky分解是标准库例程。厂商库维护并调优这些内核：Intel的oneMKL 2025发行说明报告了针对Intel Arc GPU的批量Cholesky分解（potrf_batch）的性能改进。<sup>[9](https://www.intel.com/content/www/us/en/developer/articles/release-notes/onemkl/2025.html)</sup>

## References

1. [Nicholas J. Higham (2008). Cholesky Factorization. MIMS Preprint, University of Manchester.](https://www.math.drexel.edu/~tolya/Higham_Cholesky.pdf)
2. [Qui était Cholesky ? André-Louis Cholesky (1875-1918), Publimath / PLOT n° 64-65.](https://publimath.fr/apl93024/)
3. [How ordinary elimination became Gaussian elimination, Historia Mathematica (2010).](https://doi.org/10.1016/j.hm.2010.06.003)
4. [La méthode de Cholesky, Revue d'histoire des mathématiques (Numdam).](https://www.numdam.org/articles/10.24033/rhm.30/)
5. [Stability, Ill-Conditioning, and Symmetric Indefinite Factorizations, Springer (2022).](https://link.springer.com/chapter/10.1007/978-3-031-25820-6_7)
6. [Analysis of the Cholesky Decomposition of a Semi-definite Matrix, MIMS EPrints, University of Manchester.](https://eprints.maths.manchester.ac.uk/1193/)
7. [Stability of Cholesky, course notes, University of British Columbia (2008).](https://www.cs.ubc.ca/~rbridson/courses/542g-fall-2008/notes-sept29.pdf)
8. [Accuracy and Stability of Numerical Algorithms, Chapter 10: Cholesky Factorization, SIAM.](https://epubs.siam.org/doi/10.1137/1.9780898718027.ch10)
9. [Intel oneAPI Math Kernel Library (oneMKL) Release Notes, 2025.](https://www.intel.com/content/www/us/en/developer/articles/release-notes/onemkl/2025.html)
10. [Higham (2002), Section 10.3: Positive Semidefinite Matrices, Accuracy and Stability of Numerical Algorithms.](https://pages.stat.wisc.edu/~bwu62/771/hingham2002.pdf)
11. [Michael Stewart (1997). Cholesky factorization of semidefinite Toeplitz matrices, Linear Algebra and its Applications 254: 497–525.](https://www.sciencedirect.com/science/article/pii/S0024379596005174)
12. [On the Stability of the Bareiss and Related Toeplitz Factorization Algorithms, SIAM J. Matrix Anal. Appl.](https://epubs.siam.org/doi/abs/10.1137/S0895479891221563)
13. [Sparse Cholesky factorization by Kullback-Leibler minimization, arXiv:2004.14455.](https://arxiv.org/abs/2004.14455)
14. [Precision and Cholesky Factor Estimation for Gaussian Processes, arXiv:2412.08820.](https://arxiv.org/abs/2412.08820)
15. [On Using Cholesky-Based Factorizations and Regularization for Solving Rank-Deficient Sparse Linear Least-Squares Problems, SIAM J. Sci. Comput.](https://epubs.siam.org/doi/10.1137/16M1065380)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Linear and multilinear algebra › Numerical linear algebra › Matrix decompositions and factorizations

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/cholesky-decomposition

English original: https://www.edgepedia.org/cholesky-decomposition
