Samiksha Jaiswal (Editor)

Band matrix

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In mathematics, particularly matrix theory, a band 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.

Contents

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:

a i , j = 0 if j < i k 1  or  j > i + k 2 ; k 1 , k 2 0.

then the quantities k1 and k2 are called the lower bandwidth and upper bandwidth, respectively. The bandwidth of the matrix is the maximum of k1 and k2; in other words, it is the number k such that a i , j = 0 if | i j | > k .

Definition

A matrix is called a band matrix or banded matrix if its bandwidth is reasonably small.

Examples

  • A band matrix with k1 = k2 = 0 is a diagonal matrix
  • a band matrix with k1 = k2 = 1 is a tridiagonal matrix
  • for k1 = k2 = 2 one has a pentadiagonal matrix and so on.
  • triangular matrices
  • for k1 = 0, k2 = n−1, one obtains the definition of an upper triangular matrix
  • similarly, for k1 = n−1, k2 = 0 one obtains a lower triangular matrix.
  • upper and lower Hessenberg matrices
  • block-diagonal matrices
  • shift matrices and shear matrices
  • matrices in Jordan normal form
  • a skyline matrix, also called "variable band matrix" – a generalization of band matrix
  • The inverses of Lehmer matrices are constant tridiagonal matrices, and are thus band matrices.

    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 bandedness corresponds to the fact that variables are not coupled over arbitrarily large distances. Such matrices can be further divided – for instance, banded matrices exist where every element in the band is nonzero. These often arise when discretising one-dimensional problems.

    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

    [ B 11 B 12 0 0 B 21 B 22 B 23 0 B 32 B 33 B 34 B 43 B 44 B 45 0 B 54 B 55 B 56 0 0 B 65 B 66 ]

    is stored as the 6-by-3 matrix

    [ 0 B 11 B 12 B 21 B 22 B 23 B 32 B 33 B 34 B 43 B 44 B 45 B 54 B 55 B 56 B 65 B 66 0 ] .

    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:

    [ A 11 A 12 A 13 0 0 A 22 A 23 A 24 A 33 A 34 A 35 0 A 44 A 45 A 46 s y m A 55 A 56 A 66 ] .

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

    [ A 11 A 12 A 13 A 22 A 23 A 24 A 33 A 34 A 35 A 44 A 45 A 46 A 55 A 56 0 A 66 0 0 ] .

    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.

    References

    Band matrix Wikipedia