LAPACK
Linear Algebra Library


LAPACK is a library of FORTRAN90 routines, using complex, double precision, single precision, or double precision complex arithmetic, for solving linear systems and performing eigenvalue analysis.

LAPACK replaces the LINPACK and EISPACK libraries. The LAPACK library is more flexible, has newer algorithms, and can often run much more efficiently than the older libraries.

However, it should be noted that, internally, the library is quite complex. When a user calls a single LAPACK routine, that routine may, in turn, potentially call 30 or more subroutines; trying to understand the logic of the algorithm, or even simply collecting all the routines involved in a single call, can be a painful task. If I was trying to get an understanding of how to implement the QR or SVD algorithm, for instance, I would much prefer to read the LINPACK source code rather than the LAPACK source code! Similarly, it is much easier to convert the LINPACK source code to the C language, rather than the LAPACK source code, simply because the coding is simpler, more straightforward, and does not involve such an elaborate nesting of subroutines.

On the SGI, the precompiled LAPACK library may be accessed via a command like:

f90 myprog.f90 -lscs

On the Compaq ALPHA, a precompiled optimized LAPACK library is available in CXML, the "Compaq Extended Math Library", and may be linked via a command like:

fort myprog.f90 -lcxml

LAPACK includes routines to

The source code and documentation for LAPACK is available through the NETLIB web site.

Related Data and Programs:

BLAS1 is a FORTRAN90 library of vector-vector routines needed by LAPACK.

BLAS2 is a FORTRAN90 library of matrix-vector routines needed by LAPACK.

BLAS3 is a FORTRAN90 library of matrix-matrix routines needed by LAPACK.

EISPACK is a FORTRAN90 library of routines for the computation of eigenvalues and eigenvectors.

ESSL the IBM Engineering and Scientific Subroutine Library, includes an implementation of some of the LAPACK routines.

LAPACK is also available in a FORTRAN77 version.

LAPACK_D is a directory of examples of using the LAPACK routines for linear algebra problems involving double precision real arithmetic.

LINPACK is a FORTRAN90 library of routines which is an earlier standard package of linear system solvers.

LINPLUS is a FORTRAN90 library of simple linear solvers for a variety of matrix formats.

PETSC is a scientific library for use in parallel computation, which includes an implementation of the LAPACK routines.

SVD_DEMO is an executable FORTRAN90 program which demonstrates the singular value decomposition for a simple example.

TEST_EIGEN is a FORTRAN90 library of routines that define various eigenvalue test cases.

TEST_MAT is a FORTRAN90 library of routines which define test matrices, some of which have known determinants, eigenvalues and eigenvectors, inverses, and so on.

Reference:

  1. Edward Anderson, Zhaojun Bai, Christian Bischof, Susan Blackford, James Demmel, Jack Dongarra, Jeremy DuCroz, Anne Greenbaum, Sven Hammarling, Alan McKenney, Danny Sorensen,
    LAPACK User's Guide,
    Third Edition,
    SIAM, 1999,
    ISBN: 0898714478,
    LC: QA76.73.F25L36
  2. Vincent Barker, Susan Blackford, Jack Dongarra, Jeremy Du Croz, Sven Hammarling, Minka Marinova, Jerzy Wasniewski, Plamen Yalamov,
    LAPACK95 User's Guide,
    SIAM, 2001,
    ISBN13: 978-0-898715-04-0,
    LC: QA76.73.F25.L36.
  3. Charles Lawson, Richard Hanson, David Kincaid and Fred Krogh, Algorithm 539, Basic Linear Algebra Subprograms for Fortran Usage,
    ACM Transactions on Mathematical Software,
    Volume 5, Number 3, September 1979, pages 308-323.

Source Code:

Examples and Tests:

There are individual example directories for particular arithmetic models.

List of Routines:

You can go up one level to the FORTRAN90 source codes.


Last revised on 09 April 2007.