compat.gsl
#includeGNU Scientific Library with its CBLAS implementation (static, source-built)
#include <gsl/gsl_blas.h>
mcpp add compat.gsl@2.8
Usage
From this repository's own test project — built and run by CI, not written for the website.
#ifdef HAVE_GSL
#include <cmath>
#include <cstdio>
#include <gsl/gsl_blas.h>
#include <gsl/gsl_cblas.h>
#include <gsl/gsl_integration.h>
#include <gsl/gsl_sf_bessel.h>
namespace {
double square(double x, void*) {
return x * x;
}
} // namespace
int main() {
if (std::abs(gsl_sf_bessel_J0(0.0) - 1.0) > 1e-12) return 1;
double result = 0.0;
// …
tests/examples/gsl/tests/gsl.cpp · project tests/examples/gsl
Build
- targets
gsl (lib)- language
c++23- C standard
c11- import std
- no
- include dirs
include
Sources (1)
mcpp_gsl_anchor.c
Versions
| Version | Platforms | Mirrors | sha256 |
|---|---|---|---|
2.8 latest |
LinuxmacOS | source | 6a99eeed1563… |