mcpp index

compat.gsl

#include

GNU Scientific Library with its CBLAS implementation (static, source-built)

#include <gsl/gsl_blas.h>
mcpp add compat.gsl@2.8

用法

来自本仓库自己的测试项目 —— CI 真的编译并运行过,不是为了网站写的。

#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 · 项目 tests/examples/gsl

构建

targets
gsl (lib)
language
c++23
C standard
c11
import std
no
include dirs
include

源文件 (1)

  • mcpp_gsl_anchor.c

版本

版本平台 镜像sha256
2.8 最新 LinuxmacOS 源站 6a99eeed1563…