# Sparse matrix

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Sparse_matrix
> Markdown URL: https://mediated.wiki/source/Sparse_matrix.md
> Source: https://en.wikipedia.org/wiki/Sparse_matrix
> Source revision: 1355713861
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

Matrix in which most of the elements are zero

"Sparsity" redirects here. For other uses, see [Sparse (disambiguation)](/source/Sparse_(disambiguation)).

Example of sparse matrix ( 11 22 0 0 0 0 0 0 33 44 0 0 0 0 0 0 55 66 77 0 0 0 0 0 0 0 88 0 0 0 0 0 0 0 99 ) {\displaystyle \left({\begin{smallmatrix}11&22&0&0&0&0&0\\0&33&44&0&0&0&0\\0&0&55&66&77&0&0\\0&0&0&0&0&88&0\\0&0&0&0&0&0&99\\\end{smallmatrix}}\right)} The above sparse matrix contains only 9 non-zero elements, with 26 zero elements. Its sparsity is 74%, and its density is 26%.

A sparse matrix obtained when solving a [finite element problem](/source/Finite_element_method) in two dimensions. The non-zero elements are shown in black.

In [numerical analysis](/source/Numerical_analysis) and [scientific computing](/source/Scientific_computing), a **sparse matrix** or **sparse array** is a [matrix](/source/Matrix_(mathematics)) in which most of the elements are zero.[1] There is no strict definition regarding the proportion of zero-value elements for a matrix to qualify as **sparse** but a common criterion is that the number of non-zero elements is roughly equal to the number of rows or columns. By contrast, if most of the elements are non-zero, the matrix is considered **dense**.[1] The number of zero-valued elements divided by the total number of elements (e.g., *m* × *n* for an *m* × *n* matrix) is sometimes referred to as the **sparsity** of the matrix.

Conceptually, sparsity corresponds to systems with few pairwise interactions. For example, consider a line of balls connected by springs from one to the next: this is a sparse system, as only adjacent balls are coupled. By contrast, if the same line of balls were to have springs connecting each ball to all other balls, the system would correspond to a dense matrix. The concept of sparsity is useful in [combinatorics](/source/Combinatorics) and application areas such as [network theory](/source/Network_theory) and [numerical analysis](/source/Numerical_analysis), which typically have a low density of significant data or connections. Large sparse matrices often appear in [scientific](/source/Scientific) or [engineering](/source/Engineering) applications when solving [partial differential equations](/source/Partial_differential_equation).

When storing and manipulating sparse matrices on a [computer](/source/Computer), it is beneficial and often necessary to use specialized [algorithms](/source/Algorithm) and [data structures](/source/Data_structure) that take advantage of the sparse structure of the matrix. Specialized computers have been made for sparse matrices,[2] as they are common in the machine learning field.[3] Operations using standard dense-matrix structures and algorithms are slow and inefficient when applied to large sparse matrices as processing and [memory](/source/Computer_memory) are wasted on the zeros. Sparse data is by nature more easily [compressed](/source/Data_compression) and thus requires significantly less [storage](/source/Computer_data_storage). Some very large sparse matrices are infeasible to manipulate using standard dense-matrix algorithms.

## Special cases

### Banded

Main article: [Band matrix](/source/Band_matrix)

The [band matrices](/source/Band_matrices) form a special class of sparse matrix where the non-zero elements are concentrated near the main diagonal. A band matrix is characterised by its lower and upper bandwidths, which refer to the number of diagonals below and above (respectively) the [main diagonal](/source/Main_diagonal) between which all of the non-zero entries are contained.

Formally, the [lower bandwidth of a matrix](/source/Lower_bandwidth_of_a_matrix) **A** is the smallest number *p* such that the entry *a**i*,*j* vanishes whenever *i* > *j* + *p*. Similarly, the [upper bandwidth](/source/Band_matrix#upper_bandwidth) is the smallest number *p* such that *a**i*,*j* = 0 whenever *i* < *j* − *p* ([Golub & Van Loan 1996](#CITEREFGolubVan_Loan1996), §1.2.1). For example, a [tridiagonal matrix](/source/Tridiagonal_matrix) has lower bandwidth 1 and upper bandwidth 1. As another example, the following sparse matrix has lower and upper bandwidth both equal to 3. Notice that zeros are represented with dots for clarity. [ X X X ⋅ ⋅ ⋅ ⋅ X X ⋅ X X ⋅ ⋅ X ⋅ X ⋅ X ⋅ ⋅ ⋅ X ⋅ X ⋅ X ⋅ ⋅ X X ⋅ X X X ⋅ ⋅ ⋅ X X X ⋅ ⋅ ⋅ ⋅ ⋅ X ⋅ X ] {\displaystyle {\begin{bmatrix}X&X&X&\cdot &\cdot &\cdot &\cdot &\\X&X&\cdot &X&X&\cdot &\cdot &\\X&\cdot &X&\cdot &X&\cdot &\cdot &\\\cdot &X&\cdot &X&\cdot &X&\cdot &\\\cdot &X&X&\cdot &X&X&X&\\\cdot &\cdot &\cdot &X&X&X&\cdot &\\\cdot &\cdot &\cdot &\cdot &X&\cdot &X&\\\end{bmatrix}}}

Matrices with reasonably small upper and lower bandwidth are known as band matrices and often lend themselves to simpler algorithms than general sparse matrices; or one can sometimes apply dense matrix algorithms and gain efficiency simply by looping over a reduced number of indices.

By rearranging the rows and columns of a matrix **A** it may be possible to obtain a matrix **A**′ with a lower bandwidth. A number of algorithms are designed for [bandwidth minimization](/source/Graph_bandwidth).

#### Diagonal

A [diagonal matrix](/source/Diagonal_matrix) is the extreme case of a band matrix, with zero upper and lower bandwidth. A diagonal matrix can be stored efficiently by storing just the entries in the [main diagonal](/source/Main_diagonal) as a [one-dimensional array](/source/One-dimensional_array), so a diagonal *n* × *n* matrix requires only *n* entries in memory.

### Symmetric

A symmetric sparse matrix arises as the [adjacency matrix](/source/Adjacency_matrix) of an [undirected graph](/source/Undirected_graph); it can be stored efficiently as an [adjacency list](/source/Adjacency_list).

### Block diagonal

A [block-diagonal matrix](/source/Block-diagonal_matrix) consists of sub-matrices along its diagonal blocks. A block-diagonal matrix **A** has the form A = [ A 1 0 ⋯ 0 0 A 2 ⋯ 0 ⋮ ⋮ ⋱ ⋮ 0 0 ⋯ A n ] , {\displaystyle \mathbf {A} ={\begin{bmatrix}\mathbf {A} _{1}&0&\cdots &0\\0&\mathbf {A} _{2}&\cdots &0\\\vdots &\vdots &\ddots &\vdots \\0&0&\cdots &\mathbf {A} _{n}\end{bmatrix}},}

where **A***k* is a square matrix for all *k* = 1, ..., *n*.

## Use

### Reducing fill-in

The *fill-in* of a matrix are those entries that change from an initial zero to a non-zero value during the execution of an algorithm. To reduce the memory requirements and the number of arithmetic operations used during an algorithm, it is useful to minimize the fill-in by switching rows and columns in the matrix. The [symbolic Cholesky decomposition](/source/Symbolic_Cholesky_decomposition) can be used to calculate the worst possible fill-in before doing the actual [Cholesky decomposition](/source/Cholesky_decomposition).

There are other methods than the [Cholesky decomposition](/source/Cholesky_decomposition) in use. Orthogonalization methods (such as QR factorization) are common, for example, when solving problems by least squares methods. While the theoretical fill-in is still the same, in practical terms the "false non-zeros" can be different for different methods. And symbolic versions of those algorithms can be used in the same manner as the symbolic Cholesky to compute worst case fill-in.

### Solving sparse matrix equations

Both [iterative](/source/Iterative_method) and direct methods exist for sparse matrix solving.

Iterative methods, such as [conjugate gradient](/source/Conjugate_gradient) method and [GMRES](/source/GMRES) utilize fast computations of matrix-vector products A x i {\displaystyle Ax_{i}} , where matrix A {\displaystyle A} is sparse. The use of [preconditioners](/source/Preconditioner) can significantly accelerate convergence of such iterative methods.

## Storage

A matrix is typically stored as a two-dimensional array. Each entry in the array represents an element *a**i*,*j* of the matrix and is accessed by the two [indices](/source/Array_data_structure) *i* and *j*. Conventionally, *i* is the row index, numbered from top to bottom, and *j* is the column index, numbered from left to right. For an *m* × *n* matrix, the amount of memory required to store the matrix in this format is proportional to *m* × *n* (disregarding the fact that the dimensions of the matrix also need to be stored).

In the case of a sparse matrix, substantial memory requirement reductions can be realized by storing only the non-zero entries. Depending on the number and distribution of the non-zero entries, different data structures can be used and yield huge savings in memory when compared to the basic approach. The trade-off is that accessing the individual elements becomes more complex and additional structures are needed to be able to recover the original matrix unambiguously.

Formats can be divided into two groups:

- Those that support efficient modification, such as DOK (Dictionary of keys), LIL (List of lists), or COO (Coordinate list). These are typically used to construct the matrices.

- Those that support efficient access and matrix operations, such as CSR (Compressed Sparse Row) or CSC (Compressed Sparse Column).

### Dictionary of keys (DOK)

DOK consists of a [dictionary](/source/Associative_array) that maps (row, column)-[pairs](/source/Ordered_pair) to the value of the elements. Elements that are missing from the dictionary are taken to be zero. The format is good for incrementally constructing a sparse matrix in random order, but poor for iterating over non-zero values in lexicographical order. One typically constructs a matrix in this format and then converts to another more efficient format for processing.[4]

### List of lists (LIL)

LIL stores one list per row, with each entry containing the column index and the value. Typically, these entries are kept sorted by column index for faster lookup. This is another format good for incremental matrix construction.[5]

### Coordinate list (COO)

COO stores a list of (row, column, value) tuples. Ideally, the entries are sorted first by row index and then by column index, to improve random access times. This is another format that is good for incremental matrix construction.[6]

### Compressed sparse row (CSR, CRS or Yale format)

The *compressed sparse row* (CSR) or *compressed row storage* (CRS) or Yale format represents a matrix **M** by three (one-dimensional) arrays, that respectively contain nonzero values, the extents of rows, and column indices. It is similar to COO, but compresses the row indices, hence the name. This format allows fast row access and matrix-vector multiplications (**M***x*). The CSR format has been in use since at least the mid-1960s, with the first complete description appearing in 1967.[7]

The CSR format stores a sparse *m* × *n* matrix **M** in row form using three (one-dimensional) arrays (V, COL_INDEX, ROW_INDEX). Let NNZ denote the number of nonzero entries in **M**. (Note that [zero-based indices](/source/Zero-based_numbering) shall be used here.)

- The arrays V and COL_INDEX are of length NNZ, and contain the non-zero values and the column indices of those values respectively

- COL_INDEX contains the column in which the corresponding entry V is located.

- The array ROW_INDEX is of length *m* + 1 and encodes the index in V and COL_INDEX where the given row starts. This is equivalent to ROW_INDEX[j] encoding the total number of nonzeros above row j. The last element is NNZ , i.e., the fictitious index in V immediately after the last valid index NNZ − 1.[8]

For example, the matrix ( 5 0 0 0 0 8 0 0 0 0 3 0 0 6 0 0 ) {\displaystyle {\begin{pmatrix}5&0&0&0\\0&8&0&0\\0&0&3&0\\0&6&0&0\\\end{pmatrix}}} is a 4 × 4 matrix with 4 nonzero elements, hence

V         = [ 5 8 3 6 ]
COL_INDEX = [ 0 1 2 1 ]
ROW_INDEX = [ 0 1 2 3 4 ]

assuming a zero-indexed language.

To extract a row, we first define:

row_start = ROW_INDEX[row]
row_end   = ROW_INDEX[row + 1]

Then we take slices from V and COL_INDEX starting at row_start and ending at row_end.

To extract the row 1 (the second row) of this matrix we set row_start=1 and row_end=2. Then we make the slices V[1:2] = [8] and COL_INDEX[1:2] = [1]. We now know that in row 1 we have one element at column 1 with value 8.

In this case the CSR representation contains 13 entries, compared to 16 in the original matrix. The CSR format saves on memory only when NNZ < (*m* (*n* − 1) − 1) / 2.

Another example, the matrix ( 10 20 0 0 0 0 0 30 0 40 0 0 0 0 50 60 70 0 0 0 0 0 0 80 ) {\displaystyle {\begin{pmatrix}10&20&0&0&0&0\\0&30&0&40&0&0\\0&0&50&60&70&0\\0&0&0&0&0&80\\\end{pmatrix}}} is a 4 × 6 matrix (24 entries) with 8 nonzero elements, so

V         = [ 10 20 30 40 50 60 70 80 ]
COL_INDEX = [  0  1  1  3  2  3  4  5 ]
ROW_INDEX = [  0  2  4  7  8 ]

The whole is stored as 21 entries: 8 in V, 8 in COL_INDEX, and 5 in ROW_INDEX.

- ROW_INDEX splits the array V into rows: (10, 20) (30, 40) (50, 60, 70) (80), indicating the index of V (and COL_INDEX) where each row starts and ends;

- COL_INDEX aligns values in columns: (10, 20, ...) (0, 30, 0, 40, ...)(0, 0, 50, 60, 70, 0) (0, 0, 0, 0, 0, 80).

Note that in this format, the first value of ROW_INDEX is always zero and the last is always NNZ, so they are in some sense redundant (although in programming languages where the array length needs to be explicitly stored, NNZ would not be redundant). Nonetheless, this does avoid the need to handle an exceptional case when computing the length of each row, as it guarantees the formula ROW_INDEX[*i* + 1] − ROW_INDEX[*i*] works for any row *i*. Moreover, the memory cost of this redundant storage is likely insignificant for a sufficiently large matrix.

The (old and new) Yale sparse matrix formats are instances of the CSR scheme. The old Yale format works exactly as described above, with three arrays; the new format combines ROW_INDEX and COL_INDEX into a single array and handles the diagonal of the matrix separately.[9]

For [logical](/source/Logical_matrix) [adjacency matrices](/source/Adjacency_matrix), the data array can be omitted, as the existence of an entry in the row array is sufficient to model a binary adjacency relation.

It is likely known as the Yale format because it was proposed in the 1977 Yale Sparse Matrix Package report from Department of Computer Science at Yale University.[10]

### Compressed sparse column (CSC or CCS)

CSC is similar to CSR except that values are read first by column, a row index is stored for each value, and column pointers are stored. For example, CSC is (val, row_ind, col_ptr), where val is an array of the (top-to-bottom, then left-to-right) non-zero values of the matrix; row_ind is the row indices corresponding to the values; and, col_ptr is the list of val indexes where each column starts. The name is based on the fact that column index information is compressed relative to the COO format. One typically uses another format (LIL, DOK, COO) for construction. This format is efficient for arithmetic operations, column slicing, and matrix-vector products. This is the traditional format for specifying a sparse matrix in MATLAB (via the sparse function).

## Software

Many software libraries support sparse matrices, and provide solvers for sparse matrix equations. The following are open-source:

- [PETSc](/source/Portable%2C_Extensible_Toolkit_for_Scientific_Computation), a large C library, containing many different matrix solvers for a variety of matrix storage formats.

- [Trilinos](/source/Trilinos), a large C++ library, with sub-libraries dedicated to the storage of dense and sparse matrices and solution of corresponding linear systems.

- [Eigen3](/source/Eigen_(C%2B%2B_library)) is a C++ library that contains several sparse matrix solvers. However, none of them are [parallelized](/source/Parallel_computing).

- [MUMPS](/source/MUMPS_(software)) (**MU**ltifrontal **M**assively **P**arallel sparse direct **S**olver), written in Fortran90, is a [frontal solver](/source/Frontal_solver).

- [deal.II](/source/Deal.II), a finite element library that also has a sub-library for sparse linear systems and their solution.

- [DUNE](/source/Dune_(mathematics_software)), another finite element library that also has a sub-library for sparse linear systems and their solution.

- [Armadillo](/source/Armadillo_(C%2B%2B_library)) provides a user-friendly C++ wrapper for BLAS and LAPACK.

- [SciPy](/source/SciPy) provides support for several sparse matrix formats, linear algebra, and solvers.

- [ALGLIB](/source/ALGLIB) is a C++ and C# library with sparse linear algebra support

- [ARPACK](/source/ARPACK) Fortran 77 library for sparse matrix diagonalization and manipulation, using the Arnoldi algorithm

- [SLEPc](/source/SLEPc) Library for solution of large scale linear systems and sparse matrices

- [scikit-learn](/source/Scikit-learn), a Python library for [machine learning](/source/Machine_learning), provides support for sparse matrices and solvers

- [SparseArrays](https://docs.julialang.org/en/v1/stdlib/SparseArrays/) is a [Julia](/source/Julia_(programming_language)) standard library.

- [PSBLAS](https://en.wikipedia.org/w/index.php?title=PSBLAS&action=edit&redlink=1), software toolkit to solve sparse linear systems supporting multiple formats also on GPU.

## History

The term *sparse matrix* was possibly coined by [Harry Markowitz](/source/Harry_Markowitz) who initiated some pioneering work but then left the field.[11]

## See also

- [Matrix representation](/source/Matrix_representation)

- [Pareto principle](/source/Pareto_principle)

- [Ragged matrix](/source/Ragged_matrix)

- [Single-entry matrix](/source/Single-entry_matrix)

- [Skyline matrix](/source/Skyline_matrix)

- [Sparse graph code](/source/Sparse_graph_code)

- [Sparse file](/source/Sparse_file)

- [Harwell-Boeing file format](/source/Harwell-Boeing_file_format)

- [Matrix Market exchange formats](/source/Matrix_Market_exchange_formats)

- [One-hot](/source/One-hot)

## Notes

1. ^ [***a***](#cite_ref-Yan_Wu_Liu_Gao_2017_p._1-0) [***b***](#cite_ref-Yan_Wu_Liu_Gao_2017_p._1-1) Yan, Di; Wu, Tao; Liu, Ying; Gao, Yang (2017). "An efficient sparse-dense matrix multiplication on a multicore system". *2017 IEEE 17th International Conference on Communication Technology (ICCT)*. IEEE. pp. 1880–3. [doi](/source/Doi_(identifier)):[10.1109/icct.2017.8359956](https://doi.org/10.1109%2Ficct.2017.8359956). [ISBN](/source/ISBN_(identifier)) [978-1-5090-3944-9](https://en.wikipedia.org/wiki/Special:BookSources/978-1-5090-3944-9). The computation kernel of DNN is large sparse-dense matrix multiplication. In the field of numerical analysis, a sparse matrix is a matrix populated primarily with zeros as elements of the table. By contrast, if the number of non-zero elements in a matrix is relatively large, then it is commonly considered a dense matrix. The fraction of zero elements (non-zero elements) in a matrix is called the sparsity (density). Operations using standard dense-matrix structures and algorithms are relatively slow and consume large amounts of memory when applied to large sparse matrices.

1. **[^](#cite_ref-2)** ["Cerebras Systems Unveils the Industry's First Trillion Transistor Chip"](https://www.businesswire.com/news/home/20190819005148/en/Cerebras-Systems-Unveils-Industry%E2%80%99s-Trillion-Transistor-Chip). *www.businesswire.com*. 2019-08-19. Retrieved 2019-12-02. The WSE contains 400,000 AI-optimized compute cores. Called SLAC™ for Sparse Linear Algebra Cores, the compute cores are flexible, programmable, and optimized for the sparse linear algebra that underpins all neural network computation

1. **[^](#cite_ref-3)** ["Argonne National Laboratory Deploys Cerebras CS-1, the World's Fastest Artificial Intelligence Computer | Argonne National Laboratory"](https://www.anl.gov/article/argonne-national-laboratory-deploys-cerebras-cs1-the-worlds-fastest-artificial-intelligence-computer). *www.anl.gov* (Press release). Retrieved 2019-12-02. The WSE is the largest chip ever made at 46,225 square millimeters in area, it is 56.7 times larger than the largest graphics processing unit. It contains 78 times more AI optimized compute cores, 3,000 times more high speed, on-chip memory, 10,000 times more memory bandwidth, and 33,000 times more communication bandwidth.

1. **[^](#cite_ref-4)** See [scipy.sparse.dok_matrix](http://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.dok_matrix.html)

1. **[^](#cite_ref-5)** See [scipy.sparse.lil_matrix](http://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.lil_matrix.html)

1. **[^](#cite_ref-6)** See [scipy.sparse.coo_matrix](http://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.coo_matrix.html)

1. **[^](#cite_ref-7)** Buluç, Aydın; Fineman, Jeremy T.; Frigo, Matteo; Gilbert, John R.; [Leiserson, Charles E.](/source/Charles_E._Leiserson) (2009). [*Parallel sparse matrix-vector and matrix-transpose-vector multiplication using compressed sparse blocks*](https://people.eecs.berkeley.edu/~aydin/csb2009.pdf) (PDF). ACM Symp. on Parallelism in Algorithms and Architectures. [CiteSeerX](/source/CiteSeerX_(identifier)) [10.1.1.211.5256](https://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.211.5256).

1. **[^](#cite_ref-Saad03_8-0)** [Saad 2003](#CITEREFSaad2003)

1. **[^](#cite_ref-9)** Bank, Randolph E.; Douglas, Craig C. (1993), ["Sparse Matrix Multiplication Package (SMMP)"](http://www.mgnet.org/~douglas/Preprints/pub0034.pdf) (PDF), *Advances in Computational Mathematics*, **1**: 127–137, [doi](/source/Doi_(identifier)):[10.1007/BF02070824](https://doi.org/10.1007%2FBF02070824), [S2CID](/source/S2CID_(identifier)) [6412241](https://api.semanticscholar.org/CorpusID:6412241)

1. **[^](#cite_ref-10)** Eisenstat, S. C.; Gursky, M. C.; Schultz, M. H.; Sherman, A. H. (April 1977). ["Yale Sparse Matrix Package"](https://apps.dtic.mil/dtic/tr/fulltext/u2/a047724.pdf) (PDF). [Archived](https://web.archive.org/web/20190406045412/https://apps.dtic.mil/dtic/tr/fulltext/u2/a047724.pdf) (PDF) from the original on April 6, 2019. Retrieved 6 April 2019.

1. **[^](#cite_ref-11)** [Oral history interview with Harry M. Markowitz](http://purl.umn.edu/107467), pp. 9, 10.

## References

- [Golub, Gene H.](/source/Gene_H._Golub); [Van Loan, Charles F.](/source/Charles_F._Van_Loan) (1996). *Matrix Computations* (3rd ed.). Baltimore: Johns Hopkins. [ISBN](/source/ISBN_(identifier)) [978-0-8018-5414-9](https://en.wikipedia.org/wiki/Special:BookSources/978-0-8018-5414-9).

- Stoer, Josef; Bulirsch, Roland (2002). *Introduction to Numerical Analysis* (3rd ed.). Springer. [doi](/source/Doi_(identifier)):[10.1007/978-0-387-21738-3](https://doi.org/10.1007%2F978-0-387-21738-3). [ISBN](/source/ISBN_(identifier)) [978-0-387-95452-3](https://en.wikipedia.org/wiki/Special:BookSources/978-0-387-95452-3).

- Tewarson, Reginald P. (1973). [*Sparse Matrices*](https://www.sciencedirect.com/science/book/9780126856507). Mathematics in science and engineering. Vol. 99. Academic Press. [ISBN](/source/ISBN_(identifier)) [0-12-685650-8](https://en.wikipedia.org/wiki/Special:BookSources/0-12-685650-8). [OCLC](/source/OCLC_(identifier)) [316552948](https://search.worldcat.org/oclc/316552948). (This book, by a professor at the State University of New York at Stony Book, was the first book exclusively dedicated to Sparse Matrices. Graduate courses using this as a textbook were offered at that University in the early 1980s).

- Bank, Randolph E.; Douglas, Craig C. ["Sparse Matrix Multiplication Package"](http://www.mgnet.org/~douglas/Preprints/pub0034.pdf) (PDF).

- Pissanetzky, Sergio (1984). [*Sparse Matrix Technology*](https://archive.org/details/sparsematrixtech0000piss). Academic Press. [ISBN](/source/ISBN_(identifier)) [978-0-12-557580-5](https://en.wikipedia.org/wiki/Special:BookSources/978-0-12-557580-5). [OCLC](/source/OCLC_(identifier)) [680489638](https://search.worldcat.org/oclc/680489638).

- Snay, Richard A. (1976). "Reducing the profile of sparse symmetric matrices". *[Bulletin Géodésique](/source/Bulletin_G%C3%A9od%C3%A9sique)*. **50** (4): 341–352. [Bibcode](/source/Bibcode_(identifier)):[1976BGeod..50..341S](https://ui.adsabs.harvard.edu/abs/1976BGeod..50..341S). [doi](/source/Doi_(identifier)):[10.1007/BF02521587](https://doi.org/10.1007%2FBF02521587). [hdl](/source/Hdl_(identifier)):[2027/uc1.31210024848523](https://hdl.handle.net/2027%2Fuc1.31210024848523). [S2CID](/source/S2CID_(identifier)) [123079384](https://api.semanticscholar.org/CorpusID:123079384). Also NOAA Technical Memorandum NOS NGS-4, National Geodetic Survey, Rockville, MD. Referencing [Saad 2003](#CITEREFSaad2003).

- Scott, Jennifer; Tuma, Miroslav (2023). *Algorithms for Sparse Linear Systems*. Nečas Center Series. Birkhauser. [doi](/source/Doi_(identifier)):[10.1007/978-3-031-25820-6](https://doi.org/10.1007%2F978-3-031-25820-6). [ISBN](/source/ISBN_(identifier)) [978-3-031-25819-0](https://en.wikipedia.org/wiki/Special:BookSources/978-3-031-25819-0). (Open Access)

## Further reading

- Gibbs, Norman E.; Poole, William G.; Stockmeyer, Paul K. (1976). ["A comparison of several bandwidth and profile reduction algorithms"](http://portal.acm.org/citation.cfm?id=355707). *ACM Transactions on Mathematical Software*. **2** (4): 322–330. [doi](/source/Doi_(identifier)):[10.1145/355705.355707](https://doi.org/10.1145%2F355705.355707). [S2CID](/source/S2CID_(identifier)) [14494429](https://api.semanticscholar.org/CorpusID:14494429).

- Gilbert, John R.; Moler, Cleve; Schreiber, Robert (1992). ["Sparse matrices in MATLAB: Design and Implementation"](http://citeseer.ist.psu.edu/gilbert91sparse.html). *SIAM Journal on Matrix Analysis and Applications*. **13** (1): 333–356. [CiteSeerX](/source/CiteSeerX_(identifier)) [10.1.1.470.1054](https://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.470.1054). [doi](/source/Doi_(identifier)):[10.1137/0613024](https://doi.org/10.1137%2F0613024).

- [Sparse Matrix Algorithms Research](http://faculty.cse.tamu.edu/davis/research.html) at the Texas A&M University.

- [SuiteSparse Matrix Collection](https://sparse.tamu.edu/)

- [SMALL project](http://www.small-project.eu) A EU-funded project on sparse models, algorithms and dictionary learning for large-scale data.

- Hackbusch, Wolfgang (2016). *Iterative Solution of Large Sparse Systems of Equations*. Applied Mathematical Sciences. Vol. 95 (2nd ed.). Springer. [doi](/source/Doi_(identifier)):[10.1007/978-3-319-28483-5](https://doi.org/10.1007%2F978-3-319-28483-5). [ISBN](/source/ISBN_(identifier)) [978-3-319-28481-1](https://en.wikipedia.org/wiki/Special:BookSources/978-3-319-28481-1).

- Saad, Yousef (2003). *Iterative Methods for Sparse Linear Systems*. SIAM. [doi](/source/Doi_(identifier)):[10.1137/1.9780898718003](https://doi.org/10.1137%2F1.9780898718003). [ISBN](/source/ISBN_(identifier)) [978-0-89871-534-7](https://en.wikipedia.org/wiki/Special:BookSources/978-0-89871-534-7). [OCLC](/source/OCLC_(identifier)) [693784152](https://search.worldcat.org/oclc/693784152).

- Davis, Timothy A. (2006). *Direct Methods for Sparse Linear Systems*. SIAM. [doi](/source/Doi_(identifier)):[10.1137/1.9780898718881](https://doi.org/10.1137%2F1.9780898718881). [ISBN](/source/ISBN_(identifier)) [978-0-89871-613-9](https://en.wikipedia.org/wiki/Special:BookSources/978-0-89871-613-9). [OCLC](/source/OCLC_(identifier)) [694087302](https://search.worldcat.org/oclc/694087302).

v t e Data structures Types Collection Container Abstract Associative array Multimap Retrieval Data Structure List Stack Queue Double-ended queue Priority queue Double-ended priority queue Set Multiset Disjoint-set Arrays Bit array Circular buffer Dynamic array Hash table Hashed array tree Sparse matrix Linked Association list Linked list Skip list Unrolled linked list XOR linked list Trees B-tree Binary search tree AA tree AVL tree Red–black tree Self-balancing tree Splay tree Heap Binary heap Binomial heap Fibonacci heap R-tree R* tree R+ tree Hilbert R-tree Rope Trie Hash tree Graphs Binary decision diagram Directed acyclic graph Directed acyclic word graph List of data structures

v t e Matrix classes Explicitly constrained entries Alternant Anti-diagonal Anti-Hermitian Anti-symmetric Arrowhead Band Bidiagonal Bisymmetric Block-diagonal Block Block tridiagonal Boolean Cauchy Centrosymmetric Conference Complex Hadamard Copositive Diagonally dominant Diagonal Discrete Fourier Transform Elementary Equivalent Frobenius Generalized permutation Hadamard Hankel Hermitian Hessenberg Hollow Integer Logical Matrix unit Metzler Moore Nonnegative Pentadiagonal Permutation Persymmetric Polynomial Quaternionic Signature Skew-Hermitian Skew-symmetric Skyline Sparse Sylvester Symmetric Toeplitz Triangular Tridiagonal Vandermonde Walsh Z Constant Exchange Hilbert Identity Lehmer Of ones Pascal Pauli Redheffer Shift Zero Conditions on eigenvalues or eigenvectors Companion Convergent Defective Definite Diagonalizable Hurwitz-stable Positive-definite Stieltjes Satisfying conditions on products or inverses Congruent Idempotent or Projection Invertible Involutory Nilpotent Normal Orthogonal Unimodular Unipotent Unitary Totally unimodular Weighing With specific applications Adjugate Alternating sign Augmented Bézout Jabotinsky Cartan Circulant Cofactor Commutation Confusion Coxeter Distance Duplication and elimination Euclidean distance Fundamental (linear differential equation) Generator Gram Hessian Householder Jacobian Moment Payoff Pick Random Rotation Routh-Hurwitz Seifert Shear Similarity Symplectic Totally positive Transformation Used in statistics Centering Correlation Covariance Design Doubly stochastic Fisher information Hat Precision Stochastic Transition Used in graph theory Adjacency Biadjacency Degree Edmonds Incidence Laplacian Seidel adjacency Tutte Used in science and engineering Cabibbo–Kobayashi–Maskawa Density Fundamental (computer vision) Fuzzy associative Gamma Gell-Mann Hamiltonian Irregular Overlap S State transition Substitution Z (chemistry) Related terms Jordan normal form Linear independence Matrix exponential Matrix representation of conic sections Perfect matrix Pseudoinverse Row echelon form Wronskian Mathematics portal List of matrices Category:Matrices (mathematics)

v t e Numerical linear algebra Key concepts Floating point Numerical stability Problems System of linear equations Matrix decompositions Matrix multiplication (algorithms) Matrix splitting Sparse problems Hardware CPU cache TLB Cache-oblivious algorithm SIMD Multiprocessing Software ATLAS MATLAB Basic Linear Algebra Subprograms (BLAS) LAPACK Specialized libraries

---
Adapted from the Wikipedia article [Sparse matrix](https://en.wikipedia.org/wiki/Sparse_matrix) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Sparse_matrix?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
