LUMPROVE
Syntax | Return Value | Arguments | Keywords | Examples | Version History | See Also
The LUMPROVE function uses LU decomposition to iteratively improve an approximate solution X of a set of n linear equations in n unknowns Ax = b.
LUMPROVE is based on the routine mprove described in section 2.5 of Numerical Recipes in C: The Art of Scientific Computing (Second Edition), published by Cambridge University Press, and is used by permission.
Note
If you are working with complex inputs, use the LA_LUMPROVE function instead.
Syntax
Result = LUMPROVE( A, Alud, Index, B, X [, /COLUMN] [, /DOUBLE] )
Return Value
The result is a vector, whose type and length are identical to X, containing the improved solution.
Arguments
A
The n by n coefficient array of the linear system Ax = b.
Alud
The n by n LU decomposition of A created by the LUDC procedure.
Index
An input vector, created by the LUDC procedure, containing a record of the row permutations which occurred as a result of partial pivoting.
B
An n-element vector containing the right-hand side of the linear system
Ax = b.
X
An n-element vector containing the approximate solution of the linear system
Ax = b.
Keywords
COLUMN
Set this keyword if the input array A is in column-major format (composed of column vectors) rather than in row-major format (composed of row vectors).
DOUBLE
Set this keyword to force the computation to be done in double-precision arithmetic.
Examples
This example uses LUMPROVE to improve an approximate solution X to the linear system Ax = B:
IDL prints:
This is the exact solution vector.
Version History