gsl/2.7.1

GNU Scientific Library
Recipe info
GPL-3.0-or-later
2023-12-28

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
gsl/2.7.1

Using gsl

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
gsl/2.7.1
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("gsl/2.7.1")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): GSL
  • CMake target name(s): GSL::gsl
  • libgsl => GSL::gsl
    libgslcblas => GSL::gslcblas
    
  • pkg-config file name(s): gsl.pc
  • libgsl => gsl-libgsl.pc
    libgslcblas => gsl-libgslcblas.pc
    

A simple use case using the CMake file name and the global target:

# ...
find_package(GSL REQUIRED)
# ...
target_link_libraries(YOUR_TARGET GSL::gsl)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the gsl homepage listed above:

#include "gsl/gsl_blas.h"
#include "gsl/gsl_blas_types.h"
#include "gsl/gsl_block.h"
#include "gsl/gsl_block_char.h"
#include "gsl/gsl_block_complex_double.h"
#include "gsl/gsl_block_complex_float.h"
#include "gsl/gsl_block_complex_long_double.h"
#include "gsl/gsl_block_double.h"
#include "gsl/gsl_block_float.h"
#include "gsl/gsl_block_int.h"
#include "gsl/gsl_block_long.h"
#include "gsl/gsl_block_long_double.h"
#include "gsl/gsl_block_short.h"
#include "gsl/gsl_block_uchar.h"
#include "gsl/gsl_block_uint.h"
#include "gsl/gsl_block_ulong.h"
#include "gsl/gsl_block_ushort.h"
#include "gsl/gsl_bspline.h"
#include "gsl/gsl_bst.h"
#include "gsl/gsl_bst_avl.h"
#include "gsl/gsl_bst_rb.h"
#include "gsl/gsl_bst_types.h"
#include "gsl/gsl_cblas.h"
#include "gsl/gsl_cdf.h"
#include "gsl/gsl_chebyshev.h"
#include "gsl/gsl_check_range.h"
#include "gsl/gsl_combination.h"
#include "gsl/gsl_complex.h"
#include "gsl/gsl_complex_math.h"
#include "gsl/gsl_const.h"
#include "gsl/gsl_const_cgs.h"
#include "gsl/gsl_const_cgsm.h"
#include "gsl/gsl_const_mks.h"
#include "gsl/gsl_const_mksa.h"
#include "gsl/gsl_const_num.h"
#include "gsl/gsl_deriv.h"
#include "gsl/gsl_dft_complex.h"
#include "gsl/gsl_dft_complex_float.h"
#include "gsl/gsl_dht.h"
#include "gsl/gsl_diff.h"
#include "gsl/gsl_eigen.h"
#include "gsl/gsl_errno.h"
#include "gsl/gsl_fft.h"
#include "gsl/gsl_fft_complex.h"
#include "gsl/gsl_fft_complex_float.h"
#include "gsl/gsl_fft_halfcomplex.h"
#include "gsl/gsl_fft_halfcomplex_float.h"
#include "gsl/gsl_fft_real.h"
#include "gsl/gsl_fft_real_float.h"
#include "gsl/gsl_filter.h"
#include "gsl/gsl_fit.h"
#include "gsl/gsl_heapsort.h"
#include "gsl/gsl_histogram.h"
#include "gsl/gsl_histogram2d.h"
#include "gsl/gsl_ieee_utils.h"
#include "gsl/gsl_inline.h"
#include "gsl/gsl_integration.h"
#include "gsl/gsl_interp.h"
#include "gsl/gsl_interp2d.h"
#include "gsl/gsl_linalg.h"
#include "gsl/gsl_machine.h"
#include "gsl/gsl_math.h"
#include "gsl/gsl_matrix.h"
#include "gsl/gsl_matrix_char.h"
#include "gsl/gsl_matrix_complex_double.h"
#include "gsl/gsl_matrix_complex_float.h"
#include "gsl/gsl_matrix_complex_long_double.h"
#include "gsl/gsl_matrix_double.h"
#include "gsl/gsl_matrix_float.h"
#include "gsl/gsl_matrix_int.h"
#include "gsl/gsl_matrix_long.h"
#include "gsl/gsl_matrix_long_double.h"
#include "gsl/gsl_matrix_short.h"
#include "gsl/gsl_matrix_uchar.h"
#include "gsl/gsl_matrix_uint.h"
#include "gsl/gsl_matrix_ulong.h"
#include "gsl/gsl_matrix_ushort.h"
#include "gsl/gsl_message.h"
#include "gsl/gsl_min.h"
#include "gsl/gsl_minmax.h"
#include "gsl/gsl_mode.h"
#include "gsl/gsl_monte.h"
#include "gsl/gsl_monte_miser.h"
#include "gsl/gsl_monte_plain.h"
#include "gsl/gsl_monte_vegas.h"
#include "gsl/gsl_movstat.h"
#include "gsl/gsl_multifit.h"
#include "gsl/gsl_multifit_nlin.h"
#include "gsl/gsl_multifit_nlinear.h"
#include "gsl/gsl_multilarge.h"
#include "gsl/gsl_multilarge_nlinear.h"
#include "gsl/gsl_multimin.h"
#include "gsl/gsl_multiroots.h"
#include "gsl/gsl_multiset.h"
#include "gsl/gsl_nan.h"
#include "gsl/gsl_ntuple.h"
#include "gsl/gsl_odeiv.h"
#include "gsl/gsl_odeiv2.h"
#include "gsl/gsl_permutation.h"
#include "gsl/gsl_permute.h"
#include "gsl/gsl_permute_char.h"
#include "gsl/gsl_permute_complex_double.h"
#include "gsl/gsl_permute_complex_float.h"
#include "gsl/gsl_permute_complex_long_double.h"
#include "gsl/gsl_permute_double.h"
#include "gsl/gsl_permute_float.h"
#include "gsl/gsl_permute_int.h"
#include "gsl/gsl_permute_long.h"
#include "gsl/gsl_permute_long_double.h"
#include "gsl/gsl_permute_matrix.h"
#include "gsl/gsl_permute_matrix_char.h"
#include "gsl/gsl_permute_matrix_complex_double.h"
#include "gsl/gsl_permute_matrix_complex_float.h"
#include "gsl/gsl_permute_matrix_complex_long_double.h"
#include "gsl/gsl_permute_matrix_double.h"
#include "gsl/gsl_permute_matrix_float.h"
#include "gsl/gsl_permute_matrix_int.h"
#include "gsl/gsl_permute_matrix_long.h"
#include "gsl/gsl_permute_matrix_long_double.h"
#include "gsl/gsl_permute_matrix_short.h"
#include "gsl/gsl_permute_matrix_uchar.h"
#include "gsl/gsl_permute_matrix_uint.h"
#include "gsl/gsl_permute_matrix_ulong.h"
#include "gsl/gsl_permute_matrix_ushort.h"
#include "gsl/gsl_permute_short.h"
#include "gsl/gsl_permute_uchar.h"
#include "gsl/gsl_permute_uint.h"
#include "gsl/gsl_permute_ulong.h"
#include "gsl/gsl_permute_ushort.h"
#include "gsl/gsl_permute_vector.h"
#include "gsl/gsl_permute_vector_char.h"
#include "gsl/gsl_permute_vector_complex_double.h"
#include "gsl/gsl_permute_vector_complex_float.h"
#include "gsl/gsl_permute_vector_complex_long_double.h"
#include "gsl/gsl_permute_vector_double.h"
#include "gsl/gsl_permute_vector_float.h"
#include "gsl/gsl_permute_vector_int.h"
#include "gsl/gsl_permute_vector_long.h"
#include "gsl/gsl_permute_vector_long_double.h"
#include "gsl/gsl_permute_vector_short.h"
#include "gsl/gsl_permute_vector_uchar.h"
#include "gsl/gsl_permute_vector_uint.h"
#include "gsl/gsl_permute_vector_ulong.h"
#include "gsl/gsl_permute_vector_ushort.h"
#include "gsl/gsl_poly.h"
#include "gsl/gsl_pow_int.h"
#include "gsl/gsl_precision.h"
#include "gsl/gsl_qrng.h"
#include "gsl/gsl_randist.h"
#include "gsl/gsl_rng.h"
#include "gsl/gsl_roots.h"
#include "gsl/gsl_rstat.h"
#include "gsl/gsl_sf.h"
#include "gsl/gsl_sf_airy.h"
#include "gsl/gsl_sf_bessel.h"
#include "gsl/gsl_sf_clausen.h"
#include "gsl/gsl_sf_coulomb.h"
#include "gsl/gsl_sf_coupling.h"
#include "gsl/gsl_sf_dawson.h"
#include "gsl/gsl_sf_debye.h"
#include "gsl/gsl_sf_dilog.h"
#include "gsl/gsl_sf_elementary.h"
#include "gsl/gsl_sf_ellint.h"
#include "gsl/gsl_sf_elljac.h"
#include "gsl/gsl_sf_erf.h"
#include "gsl/gsl_sf_exp.h"
#include "gsl/gsl_sf_expint.h"
#include "gsl/gsl_sf_fermi_dirac.h"
#include "gsl/gsl_sf_gamma.h"
#include "gsl/gsl_sf_gegenbauer.h"
#include "gsl/gsl_sf_hermite.h"
#include "gsl/gsl_sf_hyperg.h"
#include "gsl/gsl_sf_laguerre.h"
#include "gsl/gsl_sf_lambert.h"
#include "gsl/gsl_sf_legendre.h"
#include "gsl/gsl_sf_log.h"
#include "gsl/gsl_sf_mathieu.h"
#include "gsl/gsl_sf_pow_int.h"
#include "gsl/gsl_sf_psi.h"
#include "gsl/gsl_sf_result.h"
#include "gsl/gsl_sf_sincos_pi.h"
#include "gsl/gsl_sf_synchrotron.h"
#include "gsl/gsl_sf_transport.h"
#include "gsl/gsl_sf_trig.h"
#include "gsl/gsl_sf_zeta.h"
#include "gsl/gsl_siman.h"
#include "gsl/gsl_sort.h"
#include "gsl/gsl_sort_char.h"
#include "gsl/gsl_sort_double.h"
#include "gsl/gsl_sort_float.h"
#include "gsl/gsl_sort_int.h"
#include "gsl/gsl_sort_long.h"
#include "gsl/gsl_sort_long_double.h"
#include "gsl/gsl_sort_short.h"
#include "gsl/gsl_sort_uchar.h"
#include "gsl/gsl_sort_uint.h"
#include "gsl/gsl_sort_ulong.h"
#include "gsl/gsl_sort_ushort.h"
#include "gsl/gsl_sort_vector.h"
#include "gsl/gsl_sort_vector_char.h"
#include "gsl/gsl_sort_vector_double.h"
#include "gsl/gsl_sort_vector_float.h"
#include "gsl/gsl_sort_vector_int.h"
#include "gsl/gsl_sort_vector_long.h"
#include "gsl/gsl_sort_vector_long_double.h"
#include "gsl/gsl_sort_vector_short.h"
#include "gsl/gsl_sort_vector_uchar.h"
#include "gsl/gsl_sort_vector_uint.h"
#include "gsl/gsl_sort_vector_ulong.h"
#include "gsl/gsl_sort_vector_ushort.h"
#include "gsl/gsl_spblas.h"
#include "gsl/gsl_specfunc.h"
#include "gsl/gsl_splinalg.h"
#include "gsl/gsl_spline.h"
#include "gsl/gsl_spline2d.h"
#include "gsl/gsl_spmatrix.h"
#include "gsl/gsl_spmatrix_char.h"
#include "gsl/gsl_spmatrix_complex_double.h"
#include "gsl/gsl_spmatrix_complex_float.h"
#include "gsl/gsl_spmatrix_complex_long_double.h"
#include "gsl/gsl_spmatrix_double.h"
#include "gsl/gsl_spmatrix_float.h"
#include "gsl/gsl_spmatrix_int.h"
#include "gsl/gsl_spmatrix_long.h"
#include "gsl/gsl_spmatrix_long_double.h"
#include "gsl/gsl_spmatrix_short.h"
#include "gsl/gsl_spmatrix_uchar.h"
#include "gsl/gsl_spmatrix_uint.h"
#include "gsl/gsl_spmatrix_ulong.h"
#include "gsl/gsl_spmatrix_ushort.h"
#include "gsl/gsl_statistics.h"
#include "gsl/gsl_statistics_char.h"
#include "gsl/gsl_statistics_double.h"
#include "gsl/gsl_statistics_float.h"
#include "gsl/gsl_statistics_int.h"
#include "gsl/gsl_statistics_long.h"
#include "gsl/gsl_statistics_long_double.h"
#include "gsl/gsl_statistics_short.h"
#include "gsl/gsl_statistics_uchar.h"
#include "gsl/gsl_statistics_uint.h"
#include "gsl/gsl_statistics_ulong.h"
#include "gsl/gsl_statistics_ushort.h"
#include "gsl/gsl_sum.h"
#include "gsl/gsl_sys.h"
#include "gsl/gsl_test.h"
#include "gsl/gsl_types.h"
#include "gsl/gsl_vector.h"
#include "gsl/gsl_vector_char.h"
#include "gsl/gsl_vector_complex.h"
#include "gsl/gsl_vector_complex_double.h"
#include "gsl/gsl_vector_complex_float.h"
#include "gsl/gsl_vector_complex_long_double.h"
#include "gsl/gsl_vector_double.h"
#include "gsl/gsl_vector_float.h"
#include "gsl/gsl_vector_int.h"
#include "gsl/gsl_vector_long.h"
#include "gsl/gsl_vector_long_double.h"
#include "gsl/gsl_vector_short.h"
#include "gsl/gsl_vector_uchar.h"
#include "gsl/gsl_vector_uint.h"
#include "gsl/gsl_vector_ulong.h"
#include "gsl/gsl_vector_ushort.h"
#include "gsl/gsl_version.h"
#include "gsl/gsl_wavelet.h"
#include "gsl/gsl_wavelet2d.h"