LA_LUDC
Syntax | Arguments | Keywords | Examples | Version History | See Also
The LA_LUDC procedure computes the LU decomposition of an n-column by m-row array as:
A = P L U
where P is a permutation matrix, L is lower trapezoidal with unit diagonal elements (lower triangular if n = m), and U is upper trapezoidal (upper triangular if n = m).
LA_LUDC is based on the following LAPACK routines:
|
Output Type
|
LAPACK Routine
|
|---|---|
| Float |
|
| Double |
|
| Complex |
|
| Double complex |
|
For details see Anderson et al., LAPACK Users' Guide, 3rd ed., SIAM, 1999.
Syntax
LA_LUDC, Array, Index [, /DOUBLE] [, STATUS=variable]
Arguments
Array
A named variable containing the real or complex array to decompose. This procedure returns Array as its LU decomposition.
Index
An output vector with MIN(m, n) elements that records the row permutations which occurred as a result of partial pivoting. For 1 < j < MIN(m,n), row j of the matrix was interchanged with row Index[j].
Note
Row numbers within Index start at one rather than zero.
Keywords
DOUBLE
Set this keyword to use double-precision for computations and to return a double-precision (real or complex) result. Set DOUBLE = 0 to use single-precision for computations and to return a single-precision (real or complex) result. The default is /DOUBLE if Array is double precision, otherwise the default is DOUBLE = 0.
STATUS
Set this keyword to a named variable that will contain the status of the computation. Possible values are:
Examples
The following example uses the LU decomposition on a given array, then determines the residual error of using the resulting lower and upper arrays to recompute the original array:
When this program is compiled and run, IDL prints:
Version History