Skip to main content

The GSL library

⚠ INFORMATION
This page was translated by an AI (LLM) with a cursory human check and is awaiting full review.

Description

The GSL (GNU Scientific Library) is a numerical library that offers a wide range of mathematical routines such as random number generators, operations for manipulating sparse and dense vectors and matrices, linear algebra routines, eigenvalue computation functions, partial differential equation solvers and much more.

Installed Versions

The versions installed on Jean Zay can be found using the following command:

module avail gsl

Environment

GSL is available in different environments. To list them, use the following command:

module show gsl

To use this library in other environments, please contact the User Support team.

Note

With the command module show, you can also obtain information about the library access paths.

module show gsl

Usage

The library is accessible via the module command.

To load the default version into the current environment (or into the default environment if no environment is previously loaded):

module load gsl

or to load a specific version into a specific environment (gcc in this example):

module load gcc/9.1.0module load gsl/2.5

During compilation, it is necessary to add the options -lgsl -lgslcblas:

module load intel-compilersmodule load gslifort appel_gsl.f90 -lgsl -lgslcblas 

Documentation

📝 GSL Homepage

Your opinion matters!

To give your feedback, report an error, or suggest an improvement, click here:

quick anonymous questionnaire

This questionnaire is temporary and will take less than a minute, so take the opportunity!