# 分块矩阵

分块矩阵，又称分割矩阵，是通过水平和垂直的分割线划分成若干较小矩形子矩阵的矩阵——这些子矩阵称为“块”——从而使得这些块本身可以被当作一个更小矩阵的元素来处理。<sup>[1](https://egunawan.github.io/la22sp/textbook/Nicholson2021ACh02.pdf)</sup><sup> • </sup><sup>[2](https://www.cfm.brown.edu/people/dobrush/cs52/python/Part2/partition.html)</sup> 分割是一种组织矩阵的方式，而非改变矩阵本身：相同的元素被分组，使得加法、乘法和求逆可以逐块进行，同时也让底层问题中的结构——例如相互关联的变量组——在代数运算中显现出来。<sup>[3](https://notes.amittai.studio/linear-algebra/matrix-algebra/partitioned-matrices-and-lu)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 通过将相邻的行和列分组，把一个矩阵分割成若干子矩阵（块）；所得结果也称为分割矩阵<sup>[1](https://egunawan.github.io/la22sp/textbook/Nicholson2021ACh02.pdf)</sup><sup> • </sup><sup>[2](https://www.cfm.brown.edu/people/dobrush/cs52/python/Part2/partition.html)</sup> |
| 分块乘法 | 若 A 与 B 的分割是相容的，则 AB 可通过以块为元素的普通矩阵乘法来计算；A 的每个块中的列数必须等于 B 的对应块中的行数<sup>[1](https://egunawan.github.io/la22sp/textbook/Nicholson2021ACh02.pdf)</sup> |
| 舒尔补 | 对于 2×2 分块矩阵 \( A = \begin{pmatrix} E & F \\ G & H \end{pmatrix} \)，若 E 非奇异，则舒尔补为 \( S = H - G E^{-1} F \)，且 \( \det A = \det E \cdot \det S \)<sup>[4](https://escholarship.mcgill.ca/downloads/47429b52p)</sup> |
| 命名者 | 埃米莉·V·海恩斯沃思（Emilie V. Haynsworth，1968）为该表达式取名为“舒尔补”；伊赛·舒尔（Issai Schur）在1917年的一项证明中使用了它<sup>[4](https://escholarship.mcgill.ca/downloads/47429b52p)</sup> |
| 数值软件 | LAPACK 将分解重构为富含三级 BLAS 矩阵-矩阵运算的分块算法；块大小由查询函数 ILAENV 返回，块大小为1意味着使用非分块算法<sup>[5](https://www.netlib.org/lapack/lug/node120.html)</sup> |
| 稀疏存储 | 可变块行（VBR）格式将具有相似稀疏模式的相邻行和列分为大小可变的块，从而减少整数存储量，并让核心操作作用于整块之上<sup>[6](https://link.springer.com/chapter/10.1007/978-3-031-25820-6_1)</sup> |
| 统计学 | 在高斯图模型中，相互独立的变量簇在变量经过置换后给出分块对角协方差矩阵<sup>[7](https://link.springer.com/article/10.1007/s11222-019-09879-9)</sup> |

## 分割与分块运算

分割的定义是：将行拆分为若干连续的行组，将列拆分为若干连续的列组；各组之间的交集构成块 \( A_{ij} \)，当行组的大小为 \( p_i \)、列组的大小为 \( q_j \) 时，每个块的大小为 \( p_i \times q_j \)。<sup>[8](https://home.iitk.ac.in/~rksr/html/02MAT1.htm)</sup> 行分割与列分割不必相同，不过当二者相同时，对角块为方阵。<sup>[9](https://www.sciencedirect.com/topics/engineering/partitioned-matrix)</sup> 加法与数乘在共同的分割下可分配，因此二者均逐块进行。<sup>[8](https://home.iitk.ac.in/~rksr/html/02MAT1.htm)</sup>

**分块乘法。** 核心结果是：矩阵乘法可以贯穿分割进行——若 A 与 B 的分割是相容的，则乘积 AB 可通过以块为元素的普通矩阵乘法来计算。<sup>[1](https://egunawan.github.io/la22sp/textbook/Nicholson2021ACh02.pdf)</sup> 相容意味着计算中出现的每个块乘积都必须有意义，因此 A 的每个块中的列数必须等于 B 的对应块中的行数。<sup>[1](https://egunawan.github.io/la22sp/textbook/Nicholson2021ACh02.pdf)</sup> 一些熟悉的恒等式是本规则的特例：用 A 乘以由 B 的列构成的矩阵、AB 的列定义、行-列法则，以及 A 的行恒等式，都对应于特定的分割方式。<sup>[3](https://notes.amittai.studio/linear-algebra/matrix-algebra/partitioned-matrices-and-lu)</sup>

一个简单的例子是分块上三角矩阵的乘积。若

\[ A = \begin{pmatrix} B & X \\ 0 & C \end{pmatrix}, \qquad A_1 = \begin{pmatrix} B_1 & X_1 \\ 0 & C_1 \end{pmatrix}, \]

其中 B、B₁ 与 C、C₁ 为大小匹配的方阵，则分块乘法给出 \( A A_1 = \begin{pmatrix} B B_1 & B X_1 + X C_1 \\ 0 & C C_1 \end{pmatrix} \)。<sup>[1](https://egunawan.github.io/la22sp/textbook/Nicholson2021ACh02.pdf)</sup>

## 舒尔补

对于分割为四个块的矩阵，块 E 的舒尔补为 \( S = H - G E^{-1} F \)，在 E 非奇异时有定义。<sup>[4](https://escholarship.mcgill.ca/downloads/47429b52p)</sup> 它来自如下分块分解：

\[ \begin{pmatrix} E & F \\ G & H \end{pmatrix} = \begin{pmatrix} E & 0 \\ G & I \end{pmatrix} \begin{pmatrix} I & E^{-1} F \\ 0 & H - G E^{-1} F \end{pmatrix}, \]

取行列式即得舒尔1917年的行列式恒等式：\( \det A = \det E \cdot \det S \)。<sup>[4](https://escholarship.mcgill.ca/downloads/47429b52p)</sup> 这一名称本身由埃米莉·V·海恩斯沃思于1968年引入。<sup>[4](https://escholarship.mcgill.ca/downloads/47429b52p)</sup>

舒尔补是求解分块线性系统的实用核心。给定一个 \( A_{11} \) 非奇异的系统，可以消去第一块未知量，对第二块求解约化后的舒尔补系统，然后通过 \( A_{11} x_1 = b_1 - A_{12} x_2 \) 回代。当 \( A_{11} \) 易于求逆时——例如它是对角、带状、正交、托普利茨或稀疏矩阵时——这种方法尤为有效。<sup>[10](https://www.stat.uchicago.edu/~lekheng/courses/309/notes/lect14.pdf)</sup>

## 数值软件中的分块算法

高性能线性代数库是围绕分块构建的。为了利用执行矩阵-矩阵运算的三级 BLAS 例程的更快速度，乔列斯基分解、LU 分解和 QR 分解等算法被重构为作用于原矩阵子矩阵的分块算法。<sup>[11](https://www.netlib.org/lapack/lug/node66.html)</sup> 例如，在分块乔列斯基分解中，因子 U 的相继列块通过用三级例程求解一个三角系统来计算，用对称秩-k 更新来更新尾部子矩阵，并用非分块内核分解小对角块。<sup>[11](https://www.netlib.org/lapack/lug/node66.html)</sup>

**选择块大小。** LAPACK 例程从辅助查询函数 ILAENV 获取块大小，其默认值可针对每台机器进行调优；最优块大小可能取决于例程、选项参数以及问题维数。<sup>[5](https://www.netlib.org/lapack/lug/node120.html)</sup> 若 ILAENV 返回1，则该例程仅使用二级 BLAS 运行非分块算法。<sup>[5](https://www.netlib.org/lapack/lug/node120.html)</sup> 块大小对用户基本是隐藏的，但对安装者公开以便调优，且例程需要与之成比例的工作空间，通常是一个 \( n \times nb \) 的工作数组。<sup>[5](https://www.netlib.org/lapack/lug/node120.html)</sup> 实践中块大小的选择余地相当大：在 CRAY Y-MP C90 的一个处理器上，分块算法在最差块大小下的性能通常与最佳块大小相差约10%以内，而与最佳结果相差5%以内的情况很常见。<sup>[12](https://www.netlib.org/lapack/lawnspdf/lawn44.pdf)</sup> 分块 LU 分解（DGETRF）相较于 LINPACK 的一级 BLAS 例程 DGEFA 的加速比，从 CRAY Y-MP 和 NEC SX2 单处理器上的约2倍，到 Alliant FX/80 上的10倍不等。<sup>[12](https://www.netlib.org/lapack/lawnspdf/lawn44.pdf)</sup>

历史脉络贯穿阿尔斯通·S·豪斯霍尔德（Alston S. Householder）的《数值分析原理》（*Principles of Numerical Analysis*，1954），这是最早对矩阵分解进行现代处理的著作之一，它倾向于将矩阵分解为下三角与上三角矩阵的分块 LU 分解。<sup>[13](https://arxiv.org/abs/2201.00145)</sup>

## 应用

**区域分解与并行计算。** 当一个物理区域被分割成若干部分时，问题在每个部分上独立求解，再通过边界条件或数据传输将各部分重新连接，这种方法特别适合并行计算；在代数版本中，矩阵本身被分割成若干部分。<sup>[14](https://people.cs.kuleuven.be/~karl.meerbergen/didactiek/h03g1a/text.pdf)</sup> 例如由规则三维区域的有限元离散化产生的结构化矩阵，可以用分块结构化算法在 \( O(n b^2) \) 时间内处理，其中 \( b \) 为块大小。<sup>[14](https://people.cs.kuleuven.be/~karl.meerbergen/didactiek/h03g1a/text.pdf)</sup> 基于这一思想构建的分块预条件子包括分块雅可比、分块高斯-赛德尔，以及加性与乘性施瓦茨方法。<sup>[15](https://arxiv.org/abs/2608.15183)</sup> 对于 2×2 分块系统，带有精确舒尔补的分块三角或分块 LDU 预条件子在不动点或最小残差方法中至多两次迭代即可收敛，而一个有效的舒尔补预条件子是 2×2 分块预条件 GMRES 快速收敛的充分必要条件。<sup>[16](https://arxiv.org/abs/2001.00711)</sup><sup> • </sup><sup>[17](https://epubs.siam.org/doi/10.1137/19M1298317)</sup> 舒尔补直接法已使数百万至数十亿变量与约束的求解成为可能，但当块之间强耦合时其扩展性很差，因为组装后的舒尔补会变得又大又稠密。<sup>[18](https://www.sciencedirect.com/science/article/abs/pii/S0098135419304454)</sup>

**稀疏存储。** 对于非零模式在相邻行和列中重复出现的稀疏矩阵，可变块行格式存储大小可变的块而非单个元素，从而减少整数存储量，并让数值算法直接作用于块元素。<sup>[6](https://link.springer.com/chapter/10.1007/978-3-031-25820-6_1)</sup> 分层（ᵀⲜ）矩阵更进一步，利用多个粒度层级上块的低秩结构来紧凑地表示稠密矩阵。<sup>[19](https://arxiv.org/abs/1902.01829)</sup>

**统计学与机器学习。** 在高斯图模型中，若变量落入 k 个相互独立的组，则协方差矩阵在变量经过适当置换后变为分块对角，每个簇对应一个块 \( \Sigma_j \)。<sup>[7](https://link.springer.com/article/10.1007/s11222-019-09879-9)</sup> 检测这种块结构可减少需要估计的参数数量，并将一个大估计问题拆分为若干独立问题；一种做法是对样本协方差矩阵取阈值以找出各块，然后在每个块内应用图 lasso。<sup>[20](https://arxiv.org/abs/1511.04033)</sup> 块结构也能直接加速精度矩阵估计：在大规模数据集上，块坐标下降与块近似求逆例程已将协方差计算加速了两到三个数量级。<sup>[21](https://search.usi.ch/en/publications/36543)</sup>

## 历史

分块矩阵乘法出现在特恩布尔（Turnbull）与艾特肯（Aitken）的《标准矩阵理论导论》（*An Introduction to the Theory of Canonical Matrices*）中，而更早的著作——包括舒尔的博士论文——已经使用了分块矩阵及其乘法与求逆。<sup>[22](https://hsm.stackexchange.com/questions/6439/where-did-block-matrix-multiplication-appear)</sup> 舒尔补背后的行列式恒等式由伊赛·舒尔于1917年证明，巴纳希维奇（Banachiewicz）于1937年给出了另一证明，而现代名称则始于海恩斯沃思1968年的论文。<sup>[4](https://escholarship.mcgill.ca/downloads/47429b52p)</sup> 在数值软件中，分块技术随 LAPACK 项目而成熟，其乔列斯基、LU 和 QR 分解的分块算法成为内存层次结构机器上稠密线性代数的模板。<sup>[11](https://www.netlib.org/lapack/lug/node66.html)</sup><sup> • </sup><sup>[12](https://www.netlib.org/lapack/lawnspdf/lawn44.pdf)</sup>

## References

1. [W. Keith Nicholson (2021). *Algebra with Applications*, Chapter 2: Block Multiplication.](https://egunawan.github.io/la22sp/textbook/Nicholson2021ACh02.pdf)
2. [Partitioned matrices, Brown University CS52 course notes.](https://www.cfm.brown.edu/people/dobrush/cs52/python/Part2/partition.html)
3. [Block Matrices and the LU Factorization, Amittai's notes.](https://notes.amittai.studio/linear-algebra/matrix-algebra/partitioned-matrices-and-lu)
4. [Early Results on Schur Complements, McGill eScholarship.](https://escholarship.mcgill.ca/downloads/47429b52p)
5. [Determining the Block Size for Block Algorithms, LAPACK Users' Guide.](https://www.netlib.org/lapack/lug/node120.html)
6. [An Introduction to Sparse Matrices, Springer.](https://link.springer.com/chapter/10.1007/978-3-031-25820-6_1)
7. [Robust Bayesian model selection for variable clustering with the Gaussian graphical model, *Statistics and Computing*.](https://link.springer.com/article/10.1007/s11222-019-09879-9)
8. [Matrix Theory lecture notes, IIT Kanpur.](https://home.iitk.ac.in/~rksr/html/02MAT1.htm)
9. [Partitioned Matrix, ScienceDirect Topics.](https://www.sciencedirect.com/topics/engineering/partitioned-matrix)
10. [Solving Block Linear Systems with Schur Complement, STAT 309 notes, University of Chicago.](https://www.stat.uchicago.edu/~lekheng/courses/309/notes/lect14.pdf)
11. [Block Algorithms and their Derivation, LAPACK Users' Guide.](https://www.netlib.org/lapack/lug/node66.html)
12. [LAPACK Working Note: Performance tuning and timing results (LAWN44).](https://www.netlib.org/lapack/lawnspdf/lawn44.pdf)
13. [Jun Lu (2022). Matrix Decomposition and Applications. arXiv.](https://arxiv.org/abs/2201.00145)
14. [Numerical Linear Algebra, KU Leuven course text.](https://people.cs.kuleuven.be/~karl.meerbergen/didactiek/h03g1a/text.pdf)
15. [Garoni, Rifqui, Serra-Capizzano. Analysis of Block Jacobi/Gauss-Seidel and additive/multiplicative Schwarz preconditioning. arXiv.](https://arxiv.org/abs/2608.15183)
16. [Southworth, Olivier (2020). A note on 2×2 block-diagonal preconditioning. arXiv.](https://arxiv.org/abs/2001.00711)
17. [Southworth, Sivas, Rhebergen. On Fixed-Point, Krylov, and 2×2 Block Preconditioners for Nonsymmetric Problems, *SIMAX*.](https://epubs.siam.org/doi/10.1137/19M1298317)
18. [Scalable preconditioning of block-structured linear algebra systems using ADMM, *Computers & Chemical Engineering*.](https://www.sciencedirect.com/science/article/abs/pii/S0098135419304454)
19. [Hierarchical Matrix Operations on GPUs. arXiv.](https://arxiv.org/abs/1902.01829)
20. [Devijver, Gallopin. Block-diagonal covariance selection for high-dimensional Gaussian graphical models. arXiv.](https://arxiv.org/abs/1511.04033)
21. [Block-enhanced precision matrix estimation for large-scale datasets, *Journal of Computational Science*.](https://search.usi.ch/en/publications/36543)
22. [Where did block matrix multiplication appear?, History of Science and Mathematics Stack Exchange.](https://hsm.stackexchange.com/questions/6439/where-did-block-matrix-multiplication-appear)

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

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Linear and multilinear algebra › Matrix theory › Structured and special matrix classes

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/block-matrix

English original: https://www.edgepedia.org/block-matrix
