NAG Library f03 - Determinants
|
Scope of the Chapter
|
|
This chapter is concerned with the calculation of determinants of square matrices.
|
|
Background to the Problems
|
|
The functions in this chapter compute the determinant of a square matrix . The matrix is first decomposed into triangular factors
If is positive-definite, then , and the determinant is the product of the squares of the diagonal elements of . Otherwise, the functions in this chapter use the Crout form of the decomposition, where has unit elements on its diagonal. The determinant is then the product of the diagonal elements of , taking account of possible sign changes due to row interchanges.
To avoid overflow or underflow in the computation of the determinant, some scaling is associated with each multiplication in the product of the relevant diagonal elements. The final value is represented by
where is an integer and
Most of the functions of the chapter are based on those published in the book edited by Wilkinson and Reinsch (1971). We are very grateful to the late Dr J H Wilkinson FRS for his help and interest during the implementation of this chapter of the Library.
|
|
Decision Trees
|
|
|
Tree 1
|
|
Q:1 Is a real matrix?
Q:2 Is a symmetric positive-definite matrix?
|
|
|
See Also
|
|
Fox L (1964) An Introduction to Numerical Linear Algebra Oxford University Press
Wilkinson J H and Reinsch C (1971) Handbook for Automatic Computation II, Linear Algebra Springer–Verlag
NAG Toolbox Overview.
NAG Web Site.
|
|
Download Help Document
Was this information helpful?