Band matrix explained

In mathematics, particularly matrix theory, a band matrix or banded matrix is a sparse matrix whose non-zero entries are confined to a diagonal band, comprising the main diagonal and zero or more diagonals on either side.

Band matrix

Bandwidth

Formally, consider an n×n matrix A=(ai,j ). If all matrix elements are zero outside a diagonally bordered band whose range is determined by constants k1 and k2:

ai,j=0ifj<i-k1orj>i+k2;k1,k2\ge0.

then the quantities k1 and k2 are called the and , respectively. The of the matrix is the maximum of k1 and k2; in other words, it is the number k such that

ai,j=0

if

|i-j|>k

.

Examples

Applications

In numerical analysis, matrices from finite element or finite difference problems are often banded. Such matrices can be viewed as descriptions of the coupling between the problem variables; the banded property corresponds to the fact that variables are not coupled over arbitrarily large distances. Such matrices can be further dividedfor instance, banded matrices exist where every element in the band is nonzero.

Problems in higher dimensions also lead to banded matrices, in which case the band itself also tends to be sparse. For instance, a partial differential equation on a square domain (using central differences) will yield a matrix with a bandwidth equal to the square root of the matrix dimension, but inside the band only 5 diagonals are nonzero. Unfortunately, applying Gaussian elimination (or equivalently an LU decomposition) to such a matrix results in the band being filled in by many non-zero elements.

Band storage

Band matrices are usually stored by storing the diagonals in the band; the rest is implicitly zero.

For example, a tridiagonal matrix has bandwidth 1. The 6-by-6 matrix

\begin{bmatrix} B11&B12&0&&&0\\ B21&B22&B23&\ddots&\ddots&\vdots\\ 0&B32&B33&B34&\ddots&\vdots\\ \vdots&\ddots&B43&B44&B45&0\\ \vdots&\ddots&\ddots&B54&B55&B56\\ 0&&&0&B65&B66\end{bmatrix}

is stored as the 6-by-3 matrix

\begin{bmatrix} 0&B11&B12\\ B21&B22&B23\\ B32&B33&B34\\ B43&B44&B45\\ B54&B55&B56\\ B65&B66&0 \end{bmatrix}.

A further saving is possible when the matrix is symmetric. For example, consider a symmetric 6-by-6 matrix with an upper bandwidth of 2:

\begin{bmatrix} A11&A12&A13&0&&0\\ &A22&A23&A24&\ddots&\vdots\\ &&A33&A34&A35&0\\ &&&A44&A45&A46\\ &sym&&&A55&A56\\ &&&&&A66\end{bmatrix}.

This matrix is stored as the 6-by-3 matrix:

\begin{bmatrix} A11&A12&A13\\ A22&A23&A24\\ A33&A34&A35\\ A44&A45&A46\\ A55&A56&0\\ A66&0&0 \end{bmatrix}.

Band form of sparse matrices

From a computational point of view, working with band matrices is always preferential to working with similarly dimensioned square matrices. A band matrix can be likened in complexity to a rectangular matrix whose row dimension is equal to the bandwidth of the band matrix. Thus the work involved in performing operations such as multiplication falls significantly, often leading to huge savings in terms of calculation time and complexity.

As sparse matrices lend themselves to more efficient computation than dense matrices, as well as in more efficient utilization of computer storage, there has been much research focused on finding ways to minimise the bandwidth (or directly minimise the fill-in) by applying permutations to the matrix, or other such equivalence or similarity transformations.

The Cuthill–McKee algorithm can be used to reduce the bandwidth of a sparse symmetric matrix. There are, however, matrices for which the reverse Cuthill–McKee algorithm performs better. There are many other methods in use.

The problem of finding a representation of a matrix with minimal bandwidth by means of permutations of rows and columns is NP-hard.

See also

References

External links