# 高斯-赛德尔方法

**高斯-赛德尔方法**（Gauss–Seidel method）是一种求解线性方程组 \( Ax = b \) 的定常迭代法，它依次更新每个未知量，在同一次扫描中立即使用其他未知量最新可用的值。它是对雅可比方法的一种改进：雅可比方法仅根据上一次迭代值计算新迭代的每个分量；而高斯-赛德尔则每当一个新分量算出来就立即代入<sup>[6](https://johnfoster.pge.utexas.edu/numerical-methods-book/LinearAlgebra_IterativeSolvers.html)</sup>。在西方，该方法通常以卡尔·弗里德里希·高斯（Carl Friedrich Gauss）和路德维希·赛德尔（Ludwig Seidel）命名；赛德尔在1874年一篇关于最小二乘方程的论文中描述了这个方案，同一篇论文中还给出了一种块状变体<sup>[2](https://encyclopediaofmath.org/wiki/Gauss%E2%80%93Seidel_method)</sup><sup> • </sup><sup>[3](https://cs.appstate.edu/wmcb/Class/4310/ClassNotes131/Num%20Analysis%20History%20by%20Benzi.pdf)</sup>。

| 关键事实 | 细节 |
|---|---|
| 求解的问题 | 线性方程组 \( Ax = b \)，从初始猜测 \( x^{(0)} \) 出发迭代求解<sup>[1](https://stat243.berkeley.edu/fall-2024/units/unit10-linalg.html)</sup> |
| 更新规则 | 每个分量 \( x_i \) 由它自己的方程解出，使用所有其他分量的最新值<sup>[1](https://stat243.berkeley.edu/fall-2024/units/unit10-linalg.html)</sup> |
| 矩阵形式 | 令 \( A = L + D + U \)，一次扫描即求解 \( (L+D)x^{(k+1)} = b - Ux^{(k)} \)，这是一个下三角系统<sup>[1](https://stat243.berkeley.edu/fall-2024/units/unit10-linalg.html)</sup> |
| 每次扫描的代价 | 每个分量 \( O(n) \) 次运算，\( n \) 个未知量的一整次扫描为 \( O(n^2) \)<sup>[1](https://stat243.berkeley.edu/fall-2024/units/unit10-linalg.html)</sup> |
| 收敛判据 | 对任意初始误差都收敛，当且仅当迭代矩阵的谱半径小于1<sup>[4](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/04_linear_systems/02_jacobi_gauss_seidel.html)</sup> |
| 充分条件 | \( A \) 严格对角占优保证收敛，但并非必要条件<sup>[5](https://jonshiach.github.io/ODEs-book/_pages/7.3_Convergence_of_indirect_methods.html)</sup> |
| 并行性 | 标准的点高斯-赛德尔在一次扫描内本质上是串行的；红黑（多色）排序可恢复并行性 |

## 算法

从初始近似 \( x^{(0)} \) 出发，该方法固定除 \( x_1 \) 之外的所有分量，由第一个方程解出 \( x_1 \)：

\[ x_1^{(1)} = \frac{1}{a_{11}} \left( b_1 - \sum_{j=2}^{n} a_{1j} x_j^{(0)} \right). \]

然后对其他各行重复此过程，每次都使用当前扫描中已经算出的分量，从而得到 \( x^{(1)} \)。扫描持续进行，直到满足某个停止准则，例如 \( \| x^{(k)} - x^{(k-1)} \| \leq \epsilon \)，或关于残差 \( r^{(k)} = b - Ax^{(k)} \) 的判据<sup>[1](https://stat243.berkeley.edu/fall-2024/units/unit10-linalg.html)</sup>。

使用最新值的理由在于精度：在一次雅可比扫描中，分量 \( x_1^{(k)}, \ldots, x_{i-1}^{(k)} \) 已经算出，它们很可能比上一次迭代的值更接近解，因此高斯-赛德尔只要这些最新算出的值可用，就用它们来计算 \( x_i^{(k)} \)<sup>[6](https://johnfoster.pge.utexas.edu/numerical-methods-book/LinearAlgebra_IterativeSolvers.html)</sup>。

## 矩阵分裂与代价

记 \( A = L + D + U \)，其中 \( D \) 为对角部分，\( L \) 为严格下三角部分，\( U \) 为严格上三角部分，则一次高斯-赛德尔扫描等价于求解

\[ (L+D)x^{(k+1)} = b - Ux^{(k)}, \]

这需要求解一个下三角系统。每个分量的更新需要 \( O(n) \) 次运算，因此一整次扫描需要 \( O(n^2) \)；如果迭代能在远少于 \( n \) 次扫描时就停止，总工作量便小于精确方法的代价<sup>[1](https://stat243.berkeley.edu/fall-2024/units/unit10-linalg.html)</sup>。同样的分裂视角还表明，雅可比、高斯-赛德尔以及相关的定常迭代，都源自对系数矩阵的不同分裂方式<sup>[7](https://www.sciencedirect.com/science/article/abs/pii/0045794974900455)</sup>。

## 收敛性

收敛性由单一的量决定，即迭代矩阵 \( B \) 的谱半径 \( \rho(B) = \max_i |\lambda_i(B)| \)：迭代压缩误差当且仅当 \( \rho(B) < 1 \)，且 \( \rho(B) \) 越小，误差收缩得越快<sup>[4](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/04_linear_systems/02_jacobi_gauss_seidel.html)</sup>。定常方法可能在一个完全非奇异的方程组上发散，而这是克雷洛夫方法不会出现的失效模式<sup>[8](https://www.numerical-linear-algebra.com/essays/a-rate-that-is-known-in-advance/)</sup>。

**充分条件。** 严格对角占优，即对每一行 \( i \) 都有 \( |a_{ii}| > \sum_{j \neq i} |a_{ij}| \)，可保证雅可比和高斯-赛德尔两种方法都收敛<sup>[9](https://unseel.com/mathematics/gauss-seidel-jacobi-iteration)</sup>。此条件充分但不必要<sup>[5](https://jonshiach.github.io/ODEs-book/_pages/7.3_Convergence_of_indirect_methods.html)</sup>，而直接计算特征值来检验 \( \rho(B) \) 对于大型方程组往往不切实际，因此严格对角占优常被用作简单的实用判据<sup>[5](https://jonshiach.github.io/ODEs-book/_pages/7.3_Convergence_of_indirect_methods.html)</sup>。《SIAM数值分析杂志》的K. R. 詹姆斯（K. R. James）给出了严格对角占优或不可约弱对角占优条件下点高斯-赛德尔迭代与雅可比迭代收敛性的简洁证明，将分析推广到定常松弛过程，并导出了谱半径的界，由此得到可保证收敛的一整段松弛参数<sup>[10](https://epubs.siam.org/doi/pdf/10.1137/0710042)</sup>。

**正定系统。** 对于埃尔米特正定矩阵，即使它们并非对角占优，高斯-赛德尔也收敛；而雅可比迭代矩阵 \( D^{-1}(L+U) \) 在这样的系统上的谱半径可能至少为1并导致发散<sup>[9](https://unseel.com/mathematics/gauss-seidel-jacobi-iteration)</sup>。对同一事实的另一种看法把高斯-赛德尔视为一种优化方法，它在最小化某个能量函数时不断取得进展，这一视角给出了正定线性系统的收敛性证明<sup>[11](https://www.cs.cornell.edu/courses/cs4220/2026sp/lec/2026-03-13.html)</sup>。

## 与雅可比及SOR的关系

一般来说，高斯-赛德尔比雅可比更快得到解，因为它更有效地利用了新算出的值；然而，除非满足额外要求，对于任意矩阵这种加速在数值上并无保证<sup>[12](https://a-warded.org/open-book/university-numerical-analysis/lesson-43)</sup>。两种方法适用于不同的问题：对某些问题，高斯-赛德尔不收敛或收敛缓慢，此时宜用雅可比；对另一些问题，雅可比因忽略前面变量已经取得的进展而较慢，此时宜用高斯-赛德尔<sup>[13](https://courses.physics.illinois.edu/cs418/fa2026/text/iterative-methods.html)</sup><sup> • </sup><sup>[19](https://homepage.divms.uiowa.edu/~luke/classes/STAT7400-2023/_book/numerical-linear-algebra.html)</sup>。

对于诸如离散拉普拉斯算子这样的模型问题，高斯-赛德尔迭代矩阵的谱半径为 \( 1 - \pi^2 h^2 + O(h^4) \)，而切比雪夫加速方案能达到每步平均误差缩减因子的量级为 \( 1 - 2\pi h \)，与SOR相当<sup>[14](https://doi.org/10.1016/s0377-0427%2800%2900507-0)</sup>。

## 实际应用

对于大型稀疏方程组，尤其是来自椭圆型偏微分方程离散化的方程组，经典的雅可比、高斯-赛德尔和SOR方法主要起到引出问题的作用；现代实践更青睐预条件共轭梯度法、GMRES等克雷洛夫方法以及多重网格法，它们通常有效得多<sup>[15](https://epubs.siam.org/doi/abs/10.1137/1.9780898717839.ch4)</sup>。例如，PETSc库中的SOR与对称SOR预条件子就是高斯-赛德尔扫描，而PETSc只以串行方式或作为子块预条件子提供它们<sup>[16](https://petsc.org/main/manual/ksp/)</sup>。

**串行瓶颈。** 由于一次扫描中每个分量都依赖于前一个分量，标准的点高斯-赛德尔在一次扫描内本质上是串行的。多色与红黑排序把未知量划分为相互独立的集合，因此同一颜色内的更新互不依赖；二维网格上的红黑排序在形式上是对一个经过置换的对称正定系统作块高斯-赛德尔，具有通常的收敛保证，并且它足以消除循环携带的依赖，从而恢复SIMD向量化和线程扩展性<sup>[17](https://arxiv.org/abs/2607.01735)</sup>。

该方法也出现在应用代码中，例如上行多用户大规模MIMO系统中的低复杂度信号检测，其中基于高斯-赛德尔的算法把计算复杂度从用户数 \( K \) 的 \( O(K^3) \) 降至 \( O(K^2) \)<sup>[18](https://arxiv.org/abs/1411.2791)</sup>。

## References

1. [Gauss-Seidel, Unit 10: Numerical linear algebra, UC Berkeley Statistics](https://stat243.berkeley.edu/fall-2024/units/unit10-linalg.html)
2. [Seidel method, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Gauss%E2%80%93Seidel_method)
3. [Key Moments in the History of Numerical Analysis (Benzi)](https://cs.appstate.edu/wmcb/Class/4310/ClassNotes131/Num%20Analysis%20History%20by%20Benzi.pdf)
4. [Jacobi and Gauss–Seidel Iteration, Computational Physics, Universität Bielefeld](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/04_linear_systems/02_jacobi_gauss_seidel.html)
5. [Convergence of iterative methods, Runge-Kutta Methods (Shiach)](https://jonshiach.github.io/ODEs-book/_pages/7.3_Convergence_of_indirect_methods.html)
6. [Iterative Methods for Solving Linear Systems of Equations, John T. Foster, UT Austin](https://johnfoster.pge.utexas.edu/numerical-methods-book/LinearAlgebra_IterativeSolvers.html)
7. [Matrix iterative methods for structural reanalysis, Computers & Structures (1974)](https://www.sciencedirect.com/science/article/abs/pii/0045794974900455)
8. [A rate that is known in advance, Numerical Linear Algebra](https://www.numerical-linear-algebra.com/essays/a-rate-that-is-known-in-advance/)
9. [Gauss-Seidel and Jacobi Iteration, Unseel](https://unseel.com/mathematics/gauss-seidel-jacobi-iteration)
10. [K. R. James, Convergence of Matrix Iterations Subject to Diagonal Dominance, SIAM J. Numer. Anal.](https://epubs.siam.org/doi/pdf/10.1137/0710042)
11. [CS 4220: Numerical Analysis, Cornell](https://www.cs.cornell.edu/courses/cs4220/2026sp/lec/2026-03-13.html)
12. [Spectral Radius and Convergence Conditions for Iterative Schemes, A-Warded](https://a-warded.org/open-book/university-numerical-analysis/lesson-43)
13. [Three solvers, CS 418, University of Illinois](https://courses.physics.illinois.edu/cs418/fa2026/text/iterative-methods.html)
14. [From finite differences to finite elements: A short history of numerical analysis of PDEs, J. Comput. Appl. Math.](https://doi.org/10.1016/s0377-0427%2800%2900507-0)
15. [Randall J. LeVeque, Iterative Methods for Sparse Linear Systems, SIAM chapter 4](https://epubs.siam.org/doi/abs/10.1137/1.9780898717839.ch4)
16. [KSP: Linear System Solvers, PETSc documentation](https://petsc.org/main/manual/ksp/)
17. [Exploiting Task-Based Parallelism for the Red-Black Gauss-Seidel Method on 2D Grids, arXiv](https://arxiv.org/abs/2607.01735)
18. [Low-Complexity Soft-Output Signal Detection Based on Gauss-Seidel Method for Uplink Multi-User Large-Scale MIMO Systems, arXiv](https://arxiv.org/abs/1411.2791)
19. [Chapter 4 Numerical Linear Algebra, Computer Intensive Statistics STAT 7400](https://homepage.divms.uiowa.edu/~luke/classes/STAT7400-2023/_book/numerical-linear-algebra.html)

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

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Linear and multilinear algebra › Numerical linear algebra › Iterative methods for linear systems

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/gauss-seidel-method

English original: https://www.edgepedia.org/gauss-seidel-method
