lapack

Version:

3.9.0

Category:

math

Cluster:

Loki

Author / Distributor

https://www.netlib.org/lapack/

Description

LAPACK (Linear Algebra PACKage) is a highly optimized library written in Fortran for solving linear algebra problems such as:

  • Solving systems of linear equations

  • Least-squares solutions

  • Eigenvalue and singular value problems

  • Matrix factorizations (LU, QR, Cholesky, etc.)

It is the standard reference implementation for dense numerical linear algebra and is often used as a backend by other high-level libraries such as NumPy, SciPy, MATLAB, and ScaLAPACK.

Documentation

LAPACK is a library and does not include command-line utilities.

Example use in Fortran:

    call dgesv(N, NRHS, A, LDA, IPIV, B, LDB, INFO)

Example linker flags:

    gfortran -llapack -lblas program.f90 -o program

Documentation and full API reference:
  https://www.netlib.org/lapack/lug/

Examples/Usage

  • Load the LAPACK module:

    $ module load numlib/lapack/3.9.0
    
  • Unload the module:

    $ module unload numlib/lapack/3.9.0
    
  • Compile and link a Fortran program with LAPACK and BLAS:

    gfortran -I$EBROOTLAPACK/include -L$EBROOTLAPACK/lib -llapack -lblas mysolver.f90 -o mysolver
    

Installation

Source code is obtained from Netlib LAPACK