NAG Library f01 - Matrix Factorizations
|
Scope of the Chapter
|
|
This chapter together with Chapters f07 and f08 provides facilities for two types of problem:
|
Matrix Inversion (see Chapter f07)
|
|
Matrix Factorizations (see Chapters f01, f07 and f08)
|
These problems are discussed separately in Section [Matrix Inversion] and Section [Matrix Factorizations] .
|
|
Background to the Problems
|
|
|
Matrix Inversion
|
|
|
Non-singular square matrices of order .
|
|
General real rectangular matrices.
|
|
d. if , then can be factorized as the singular value decomposition
|
|
and in this case if then
|
|
and the pseudo inverse of is given by
|
|
which is the classical eigenvalue (spectral) factorization of .
|
|
e. if is complex then the above relationships are still true if we use "unitary" in place of "orthogonal" and conjugate transpose in place of transpose. For example, the singular value decomposition of is
|
|
|
Matrix Factorizations
|
|
The functions in this section perform matrix factorizations which are required for the solution of systems of linear equations with various special structures. A few functions which perform associated computations are also included.
Other functions for matrix factorizations are to be found in Chapters f03, f07, f08 and f11.
|
|
|
Recommendations on Choice and Use of Available Functions
|
|
|
Matrix Inversion
|
|
Note: before using any function for matrix inversion, consider carefully whether it is really needed.
Although the solution of a set of linear equations can be written as , the solution should never be computed by first inverting and then computing ; the functions in Chapters f04 or f07 should always be used to solve such sets of equations directly; they are faster in execution, and numerically more stable and accurate. Similar remarks apply to the solution of least-squares problems which again should be solved by using the functions in Chapters f02 or f08 rather than by computing a pseudo inverse.
|
a. Non-singular square matrices of order
|
|
The decision trees for inversion show which functions in Chapter f07 should be used for the inversion of other special types of matrices not treated in the chapter.
|
|
b. General real rectangular matrices
|
|
|
|
Decision Trees
|
|
|
Tree 1
|
|
The decision trees show the functions in this chapter and in Chapter f04 that should be used for inverting matrices of various types. Functions marked with an asterisk ( ) only perform part of the computation – see Section [Matrix Inversion] for further advice.
Q:1 Is an by matrix of rank ?
Q:2 Is a real matrix?
|
|
Inverse of a real n by n matrix of full rank
|
|
Q:1 Is a band matrix?
Q:2 Is symmetric?
Q:3 Is positive-definite?
Q:4 Is one triangle of stored as a linear array?
Q:5 Is one triangle of stored as a linear array?
Q:6 Is triangular?
Q:7 Is stored as a linear array?
|
|
Inverse of a complex n by n matrix of full rank
|
|
Q:1 Is a band matrix?
Q:2 Is Hermitian?
Q:3 Is positive-definite?
Q:4 Is one triangle of stored as a linear array?
Q:5 Is one triangle stored as a linear array?
Q:6 Is symmetric?
Q:7 Is one triangle of stored as a linear array?
Q:8 Is triangular?
Q:9 Is stored as a linear array?
|
|
|
See Also
|
|
Golub G H and Van Loan C F (1996) Matrix Computations (3rd Edition) Johns Hopkins University Press, Baltimore
Wilkinson J H (1965) The Algebraic Eigenvalue Problem Oxford University Press, Oxford
Wilkinson J H (1977) Some recent advances in numerical linear algebra The State of the Art in Numerical Analysis (ed D A H Jacobs) Academic Press
Wilkinson J H and Reinsch C (1971) Handbook for Automatic Computation II, Linear Algebra Springer–Verlag
NAG Toolbox Overview.
NAG Web Site.
|
|