# SuiteSparse

**SuiteSparse** 是一套面向稀疏矩阵算法的开源软件包集合，由德克萨斯A&M大学（Texas A&M University）计算机科学与工程系教授蒂莫西·A.戴维斯（Timothy A. Davis）编写或合著。这些软件包提供减少填充的排序、基于Cholesky、LU和QR分解的直接求解器、以线性代数语言表述的图算法，以及一个大型的真实稀疏矩阵基准测试集。SuiteSparse的代码构成了MATLAB、Julia以及许多科学与工程应用中稀疏矩阵运算的底层基础。<sup>[1](https://github.com/DrTimothyAldenDavis/SuiteSparse)</sup><sup> • </sup><sup>[1](https://github.com/DrTimothyAldenDavis/SuiteSparse)</sup><sup> • </sup><sup>[2](https://sparsearrays.juliasparse.org/dev/solvers/)</sup>

| 关键事实 | 详情 |
|---|---|
| 是什么 | 由德克萨斯A&M大学的蒂姆·戴维斯编写或合著的一套稀疏矩阵算法软件包<sup>[1](https://github.com/DrTimothyAldenDavis/SuiteSparse)</sup> |
| 最新版本 | v7.14.1（2026年9月12日），包含GraphBLAS 10.5.1、CHOLMOD 5.3.5、UMFPACK 6.3.8、SPQR 4.3.6、KLU 2.3.6及其他软件包<sup>[3](https://github.com/DrTimothyAldenDavis/SuiteSparse/releases)</sup> |
| 在MATLAB中的作用 | CHOLMOD、UMFPACK和SPQR为稀疏矩阵提供内置的`chol`、`lu`、`qr`和`x=A\b`；GraphBLAS自MATLAB R2021a起提供稀疏矩阵乘法<sup>[1](https://github.com/DrTimothyAldenDavis/SuiteSparse)</sup><sup> • </sup><sup>[4](https://github.com/DrTimothyAldenDavis/GraphBLAS)</sup> |
| 在Julia中的作用 | 稀疏`cholesky`/`ldlt`调用CHOLMOD，`lu`调用UMFPACK，`qr`/`lq`调用SPQR<sup>[2](https://sparsearrays.juliasparse.org/dev/solvers/)</sup> |
| 许可 | 各软件包许可混杂，包括BSD-3-Clause、LGPL-2.1-or-later、GPL-2.0-or-later、GPL-3.0-only和Apache-2.0<sup>[5](https://formulae.brew.sh/formula/suite-sparse)</sup> |
| 测试数据 | SuiteSparse矩阵集合（原佛罗里达大学稀疏矩阵集合），网址sparse.tamu.edu<sup>[6](https://people.engr.tamu.edu/davis/matrices.html)</sup> |

## 组件软件包

SuiteSparse是一个元软件包：每个组件都是一个独立的库，拥有自己的文档、许可证和已发表的算法论文。<sup>[1](https://github.com/DrTimothyAldenDavis/SuiteSparse)</sup>排序类软件包在分解之前对矩阵的行和列重新排序，以减少填充——即消去稀疏矩阵元素时的内存开销。**AMD**（近似最小度排序，与帕特里克·阿梅斯图瓦（Patrick Amestoy）和伊恩·达夫（Iain Duff）合作）是MATLAB内置的`amd`函数；**COLAMD**（列近似最小度，与斯特凡·拉里莫尔（Stefan Larimore）合作，算法设计协作者为埃斯蒙德·吴（Esmond Ng）和约翰·吉尔伯特（John Gilbert））同样内置于MATLAB；**CAMD**和**CCOLAMD**是带约束的变体；**BTF**将矩阵置换为块三角形式；**METIS**由乔治·卡里皮斯（George Karypis）开发，以略微修改的副本形式嵌入CHOLMOD，因为SuiteSparse无法使用未经修改的版本。<sup>[1](https://github.com/DrTimothyAldenDavis/SuiteSparse)</sup>

直接求解器精确地分解稀疏方程组，误差仅限于浮点舍入：

- **CHOLMOD**对对称正定矩阵执行稀疏Cholesky分解。它需要AMD、COLAMD、CCOLAMD、BLAS和LAPACK，可选使用METIS，并提供MATLAB的`chol`和部分`x=A\b`功能。<sup>[1](https://github.com/DrTimothyAldenDavis/SuiteSparse)</sup>其算法论文为《ACM数学软件汇刊》（*ACM Transactions on Mathematical Software*）2008年的算法887，作者为陈彦青（Yanqing Chen）、戴维斯、威廉·哈格（William Hager）和西瓦桑卡兰·拉贾马尼卡姆（Sivasankaran Rajamanickam）。<sup>[1](https://github.com/DrTimothyAldenDavis/SuiteSparse)</sup>
- **UMFPACK**对非对称矩阵执行稀疏LU分解，是MATLAB内置的`lu`和`x=A\b`。它需要AMD和BLAS，发表于《ACM TOMS》2004年的算法832；其算法设计合作者包括伊恩·达夫。<sup>[1](https://github.com/DrTimothyAldenDavis/SuiteSparse)</sup>
- **SPQR**（SuiteSparseQR）执行多线程、揭示秩的稀疏QR分解，是MATLAB内置的`qr`；发表于《ACM TOMS》2011年的算法915，包含GPU模块。<sup>[1](https://github.com/DrTimothyAldenDavis/SuiteSparse)</sup>
- **KLU**是一款面向电路仿真的稀疏LU求解器，此类应用中的矩阵高度非对称且往往接近三角矩阵；它使用AMD、COLAMD和BTF，发表于《ACM TOMS》2010年的算法907。<sup>[1](https://github.com/DrTimothyAldenDavis/SuiteSparse)</sup>
- **LDL**是一个简洁的LDL'分解软件包，**SPEX**使用GNU GMP和MPFR库以精确算术求解稀疏线性方程组。<sup>[1](https://github.com/DrTimothyAldenDavis/SuiteSparse)</sup>
- **ParU**是穆赫辛·阿兹纳韦（Mohsen Aznaveh）和戴维斯开发的并行非对称模式多波前方法，**Mongoose**执行图划分。<sup>[1](https://github.com/DrTimothyAldenDavis/SuiteSparse)</sup>

**CSparse**和**CXSparse**是为戴维斯的SIAM著作《稀疏线性系统的直接方法》（*Direct Methods for Sparse Linear Systems*，2006年）开发的简洁稀疏矩阵软件包；CSparse主要用于教学，而CXSparse作为其扩展超集，支持复数矩阵以及int和long整数，推荐用于生产环境。<sup>[1](https://github.com/DrTimothyAldenDavis/SuiteSparse)</sup>

## GraphBLAS与图算法

**SuiteSparse:GraphBLAS**是GraphBLAS标准的完整实现，该标准在半环的扩展代数上定义稀疏矩阵运算，支持种类繁多的算子和类型；应用于稀疏邻接矩阵时，这些运算等价于图上的计算。<sup>[4](https://github.com/DrTimothyAldenDavis/GraphBLAS)</sup>它以Apache-2.0许可证发布，被用作RedisGraph数据库的底层图引擎，以及MATLAB R2021a中内置的稀疏矩阵乘法——在戴维斯的20核NVIDIA DGX Station上，稀疏矩阵的`C=A*B`比此前MATLAB版本快最多30倍。<sup>[4](https://github.com/DrTimothyAldenDavis/GraphBLAS)</sup>**LAGraph**是一个构建在GraphBLAS之上的图算法库，其贡献者名单是整套软件包中最长的，涵盖德克萨斯A&M、英特尔、卡内基梅隆、Redis Labs、NVIDIA等机构。<sup>[1](https://github.com/DrTimothyAldenDavis/SuiteSparse)</sup>

## 在其他软件中的使用

SuiteSparse被嵌入广泛使用的系统之中，而不仅仅通过自身接口使用。MATLAB使用戴维斯的求解器处理稀疏矩阵的`x=A\b`。<sup>[7](https://people.engr.tamu.edu/davis/background.html)</sup>Julia的标准稀疏分解直接调用SuiteSparse：`cholesky`和`ldlt`返回CHOLMOD因子，`lu`返回UMFPACK分解，`qr`和`lq`返回SPQR分解。<sup>[2](https://sparsearrays.juliasparse.org/dev/solvers/)</sup>谷歌的Ceres非线性最小二乘求解器使用SuiteSparse来定位谷歌街景中的每一张照片，并构建谷歌地球中的三维影像。<sup>[8](https://people.engr.tamu.edu/davis/research.html)</sup>该软件出现在所有主流Linux发行版以及包括GIMP、R、Octave和FEniCS在内的开源软件包中；桑迪亚国家实验室的Xyce电路仿真器和伯克利的OpenSees地震模拟器都依赖它。<sup>[7](https://people.engr.tamu.edu/davis/background.html)</sup>戴维斯列出的商业用户包括MathWorks、Wolfram Research、Cadence Design Systems、IBM和ANSYS。<sup>[8](https://people.engr.tamu.edu/davis/research.html)</sup>

在一个有记载的应用案例中，戴维斯的求解器通过分析通话和交易数据的结构，帮助FBI于2015年在科罗拉多州解救了六名被性贩卖的少女。<sup>[7](https://people.engr.tamu.edu/davis/background.html)</sup>

## SuiteSparse矩阵集合

SuiteSparse矩阵集合（原佛罗里达大学稀疏矩阵集合）是一个来自实际应用的真实稀疏矩阵库，托管于sparse.tamu.edu。<sup>[6](https://people.engr.tamu.edu/davis/matrices.html)</sup>截至2010年10月，它收录了2,328个矩阵，从仅含一个非零元素的1×2矩阵到行数近2800万、元素数7.6亿的方阵，三种存储格式合计超过47 GB。<sup>[9](https://www.cise.ufl.edu/research/sparse/mat/UFget/UFhelp.html)</sup>该集合是稀疏求解器研究中的标准基准；近期关于替代算术格式和求解器可靠性的研究均从中选取测试矩阵。<sup>[10](https://arxiv.org/abs/2412.20268)</sup>

## 开发与发布历史

SuiteSparse于2019年底成为GitHub项目，官方仓库由戴维斯维护。<sup>[11](https://github.com/sergiud/SuiteSparse)</sup>发布版本整体编号，而每个软件包各有自己的版本号；7.12.2版（2026年2月5日）将GraphBLAS更新至10.3.1、SuiteSparse_config更新至7.12.2，7.14.1版（2026年9月12日）将GraphBLAS更新至10.5.1、SuiteSparse_config更新至7.14.1。<sup>[3](https://github.com/DrTimothyAldenDavis/SuiteSparse/releases)</sup>仓库使用`dev`分支开发下一个稳定版本的功能，`stable`分支存放最新的稳定版本，`dev2`工作分支用于处理提交的拉取请求。<sup>[1](https://github.com/DrTimothyAldenDavis/SuiteSparse)</sup>

开发工作得到了英特尔、NVIDIA、Redis、MIT林肯实验室、MathWorks、IBM和Julia Computing的支持。<sup>[4](https://github.com/DrTimothyAldenDavis/GraphBLAS)</sup>戴维斯当前的研究方向是面向混合多核CPU/GPU系统的并行多波前LU、QR和Cholesky分解，其中GPU同时处理多个波前矩阵，数据从子波前矩阵组装到父波前矩阵而无需移回CPU。<sup>[8](https://people.engr.tamu.edu/davis/research.html)</sup>

## 作者与荣誉

蒂姆·戴维斯是德克萨斯A&M大学计算机科学与工程系教授，先后被SIAM、ACM和IEEE授予会士称号。<sup>[7](https://people.engr.tamu.edu/davis/background.html)</sup>在其个人简介撰写前的15年间，他的算法占《ACM数学软件汇刊》算法类出版物的7%，他于2018年获得Sigma Xi颁发的沃尔斯顿·丘布创新奖（Walston Chubb Award for Innovation）。<sup>[7](https://people.engr.tamu.edu/davis/background.html)</sup>整套软件包的代码合著者包括帕特里克·阿梅斯图瓦、大卫·贝特曼（David Bateman）、陈金浩（Jinhao Chen）、陈彦青、伊恩·达夫、威廉·哈格、斯科特·科洛齐耶（Scott Kolodziej）、克里斯·劳伦索（Chris Lourenco）、斯特凡·拉里莫尔、埃里克·莫雷诺-森特诺（Erick Moreno-Centeno）、埃卡纳坦·帕拉马达伊（Ekanathan Palamadai）、西瓦桑卡兰·拉贾马尼卡姆、桑杰·兰卡（Sanjay Ranka）、维萨姆·西德-拉赫达尔（Wissam Sid-Lakhdar）和努里·耶拉兰（Nuri Yeralan），另有埃斯蒙德·吴和约翰·吉尔伯特作为额外的算法设计者。<sup>[1](https://github.com/DrTimothyAldenDavis/SuiteSparse)</sup>

## References

1. [SuiteSparse: A Suite of Sparse matrix packages, official GitHub repository](https://github.com/DrTimothyAldenDavis/SuiteSparse)
2. [Sparse Linear Algebra API, SparseArrays (JuliaSparse)](https://sparsearrays.juliasparse.org/dev/solvers/)
3. [Releases, DrTimothyAldenDavis/SuiteSparse, GitHub](https://github.com/DrTimothyAldenDavis/SuiteSparse/releases)
4. [SuiteSparse:GraphBLAS, GitHub repository](https://github.com/DrTimothyAldenDavis/GraphBLAS)
5. [Homebrew Formulae: suite-sparse](https://formulae.brew.sh/formula/suite-sparse)
6. [Tim Davis, matrices: the SuiteSparse Matrix Collection](https://people.engr.tamu.edu/davis/matrices.html)
7. [Tim Davis, background and bio, Texas A&M University](https://people.engr.tamu.edu/davis/background.html)
8. [Tim Davis, research, Texas A&M University](https://people.engr.tamu.edu/davis/research.html)
9. [The University of Florida Sparse Matrix Collection, UFget help](https://www.cise.ufl.edu/research/sparse/mat/UFget/UFhelp.html)
10. [Evaluation of Bfloat16, Posit, and Takum Arithmetics in Sparse Linear Solvers, arXiv:2412.20268](https://arxiv.org/abs/2412.20268)
11. [sergiud/SuiteSparse, CMake-enhanced mirror repository](https://github.com/sergiud/SuiteSparse)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Linear and multilinear algebra › Numerical linear algebra › Sparse matrix computation

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/suitesparse

English original: https://www.edgepedia.org/suitesparse
