toms423


toms423, a FORTRAN77 code which implements ACM toms algorithm 423, for Gaussian elimination to factor a matrix and solve a related linear system.

While the text of many ACM toms algorithms is available online through ACM: http://www.acm.org/pubs/calgo or NETLIB: http://www.netlib.org/toms/index.html, most of the early algorithms are not available. This is one of them. I typed it in.

Usage:

call decomp(n,ndim,a,ip)
computes the LU factorization of an N by N matrix A, stored in an array with leading dimension NDIM. The vector IP returns pivot information.
call solve(n,ndim,a,b,ip)
solves a linear system A*X=B, after A has been factored by DECOMP. B contains the right hand side on input, and the solution on output.

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Languages:

toms423 is available in a FORTRAN77 version.

Related Programs:

toms423_test

lapack_examples, a FORTRAN77 program which demonstrates the use of the LAPACK linear algebra library.

LINPACK, a FORTRAN77 library which solves linear systems for a variety of matrix storage schemes, real or complex arithmetic, and single or double precision.

Author:

Cleve Moler

Reference:

  1. Cleve Moler,
    Algorithm 423: Linear Equation Solver,
    Communications of the ACM,
    Volume 15, Number 4, April 1972, page 274.

Source Code:


Last revised on 14 November 2023.