CALL DET Routine

Calculates the determinant of a specified matrix that should be square.
Category: Matrix Operations
Requirement: The input matrix X must be square.

Syntax

CALL DET(X, a);

Required Arguments

X
specifies an input matrix with dimensions m x n (that is, X[m, m]).
a
specifies the returned determinate value, such that

Details

The determinant, the product of the eigenvalues, is a single numeric value. If the determinant of a matrix is zero, then that matrix is singular (that is, it does not have an inverse). The method performs an LU decomposition and collects the product of the diagonals (Forsythe, Malcolm, and Moler 1967). See the SAS/IML User's Guide for more information.

Example

The following example uses the DET CALL routine:
options pageno=1 nodate;

proc fcmp;
   array mat1[3,3] (.03, -0.78, -0.82, 0.54, 1.74,
                     1.2, -1.3, 0.25, 1.49);
   call det (mat1, result);
   put result=;
quit;
Output from the DET CALL Routine
                                The SAS System                               1

                              The FCMP Procedure

result=-0.052374