LINPACK is a C++ library which solves systems of linear equations for a variety of matrix types and storage modes, for real or complex arithmetic, and for single or double precision, by Jack Dongarra, Jim Bunch, Cleve Moler, Pete Stewart.
LINPACK has officially been superseded by the LAPACK library. The LAPACK library uses more modern algorithms and code structure. However, the LAPACK library can be extraordinarily complex; what is done in a single LINPACK routine may correspond to 10 or 20 utility routines in LAPACK. This is fine if you treat LAPACK as a black box. But if you wish to learn how the algorithm works, or to adapt it, or to convert the code to another language, this is a real drawback. This is one reason I still keep a copy of LINPACK around.
For a better and more recent LAPACK wrapper, the Armadillo C library does a good job: arma.sourceforge.net colbertsmith Posted 2010-01-02 Mailing list is not dead,Christian answered last on 2009-12-19 20:29. These are steps I used to build my own BLAS and LAPACK. The source of BLAS is in /src/BLAS while the source of LAPACK is in /src/lapack-3.5.0 and the source of octave 3.8.1 is in /src/octave-3.8.1. With only two module, 1) pcre/8.33 2) acml/5.3.1/gfortran64, loaded, I compiled BLAS shared library using. Gfortran -shared -O2.f -o libblas.so. IntelĀ® oneAPI Math Kernel Library LAPACK Examples. This document provides code examples for LAPACK (Linear Algebra PACKage) routines that solve problems in the following fields: Linear Equations. Examples for several LAPACK routines that solve systems of linear equations. Linear Least Squares Problems.

The LINPACK routines are available in both real and complex arithmetic versions, and using single precision or double precision. In most cases, a given routine has a root name, such as GEFA, and a prefix is used to identify the arithmetic and precision. Thus,
Versions of LINPACK in various arithmetic precisions are available through the NETLIB web site.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
LINPACK is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version.
LINPACK_C, a C++ library which solves linear systems using single precision complex arithmetic;
LINPACK_D, a C++ library which solves linear systems using double precision real arithmetic;

LINPACK_S, a C++ library which solves linear systems using single precision real arithmetic;
LINPACK_Z, a C++ library which solves linear systems using double precision complex arithmetic;

Original FORTRAN77 version by Jack Dongarra, Jim Bunch, Cleve Moler, Pete Stewart. C++ version by John Burkardt.
You can go up one level to the C++ source codes.
Last revised on 29 April 2012.