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…