Professional Documents
Culture Documents
--------(32)
is called sparse if only a relatively small number of its matrix elements ( ) are nonzero. The sparse
patterns that frequently occur are
Tridiagonal
We have encountered numerous situations in the module on Problem Discretization using Approximation
Theory where such matrices arise. It is wasteful to apply general direct methods on these problems.
Special methods are evolved for solving such sparse systems, which can achieve considerable reduction
in the computation time and memory space requirements. In this section, some of the sparse matrix
algorithms are discussed in detail. This is meant to be only a brief introduction to sparse matrix
computations and the treatment of the topic is, by no means, exhaustive.
In some applications, such as solving ODE-BVP / PDE using orthogonal collocations on finite elements,
we encounter equations with a block diagonal matrices, i.e.
-------(33)
where each equation is solved using, say, Gaussian elimination. Each Gaussian elimination sub-problem
would require
and
4.2 Thomas Algorithm for Tridiagonal and Block Tridiagonal Matrices [2]
-------(34)
where matrix is a tridiagonal matrix. Thomas algorithm is the Gaussian elimination algorithm tailored
to solve this type of sparse system.
-------(35)
-------(36)
-------(37)
-------(38)
-------(39, 40)
Total no of multiplications and divisions in Thomas algorithm is
which is significantly smaller than the operations (approximately) necessary for carrying out
the Gaussian elimination and backward sweep for a dense matrix.
The Thomas algorithm can be easily extended to solve a system of equations that involves a block
tridiagonal matrix. Consider block tridiagonal system of the form
-------(41)
-------(42)
-------(43)
-------(45, 46)
A triangular matrix is a sparse matrix with zero-valued elements above or below the diagonal. For
example, a lower triangular matrix can be represented as follows
-------(47)
-------(48)
The operational count i.e., the number of multiplications and divisions, for this elimination process is
-------(49)
which is considerably smaller than the Gaussian elimination for a dense matrix.
In some applications we encounter equations with a block triangular matrices. For example,
-------(50)
-------(51)
The above form does not imply that the inverse should be computed explicitly. For example, we
can find each by Gaussian elimination.
If matrix is equation (LAE) is very large, then we can partition matrix and vector as
-------(52)
-------(53)
-------(54)
-------(55)
-------(56)
It is also possible to work with higher number of partitions equal to say 9, 16 .... and solve a given
large dimensional problem.