Replaces an n-by-n matrix, a, with the LUdecomposition of a row-wise permutation of itself.
index The vector which records the row permutation effected by the partial pivoting. The values returned for index are needed in the call to LUBKSB.
d An indicator of the number of row interchanges:
LUDCMP, A, indx, D
LUBKSB, A, indx, B
LUDCMP is based on the routine of the same name in Numerical Recipes in C: The Art of Scientific Computing, by Flannery, Press, Teukolsky, and Vetterling, Cambridge University Press, Cambridge, MA, 1988. It is used by permission.