NAG Library Chapter Introduction
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 assumed to have first been decomposed into triangular factors
using functions from Chapter f07
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 Dolittle 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
is an integer and
For complex valued determinants the real and imaginary parts are scaled separately.
Recommendations on Choice and Use of Available Functions
It is extremely wasteful of computer time and storage to use an inappropriate function, for example to use a function requiring a complex matrix when is real. Most programmers will know whether their matrix is real or complex, but may be less certain whether or not a real symmetric matrix is positive definite, i.e., all eigenvalues of . A real symmetric matrix not known to be positive definite must be treated as a general real matrix.
Note: if at any stage the answer to a question is ‘Don't know’ this should be read as ‘No’.
|Determinants of factorized matrices,|| |
Auxiliary Functions Associated with Library Function Arguments
Functions Withdrawn or Scheduled for Withdrawal
The following lists all those functions that have been withdrawn since Mark 23 of the Library or are scheduled for withdrawal at one of the next two marks.
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