A widely used Fortran library of routines for standard numerical linear algebra problems, with C interfaces.
Overview
LAPACK is a package of Fortran subroutines for solving common problems in numerical linear algebra, such as linear equations, eigenvalues, and matrix factorizations. It is freely available under a modified BSD license and may be embedded in commercial software with attribution to the authors.
Distributions include Fortran LAPACK sources, test programs, a reference BLAS implementation when no optimized BLAS exists on the host, CBLAS, and LAPACKE as a standard C API developed with Intel Math Kernel Library contributors. Performance depends heavily on an efficient underlying BLAS.
Installation can use make with a tuned make.inc file, including examples for Linux with GNU compilers, or CMake for easier builds on Windows. Packages are also published via GitHub, netlib, and vcpkg. After building, maintainers recommend running the included test suite.
The project maintains FAQs, a user guide, issue tracking, and support channels for bug reports and application notes. Modified routines should be renamed and documented when redistributed.
Key features
- Fortran linear algebra subroutines
- LAPACKE C language API
- Bundled reference BLAS and CBLAS
- Make and CMake installation paths
- Included regression test suite
- vcpkg packaging support
- Commercial use with attribution
Use cases
- Solving linear systems in Fortran or C
- Eigenvalue and SVD computations
- Scientific and engineering numerics
- Linking optimized BLAS backends