GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Entrolution/bilby: A high-performance numerical quadrature (integration) library for Rust

BranchesTags
Open more actions menu

Latest commit

 

History

20 Commits
20 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
benches
benches
 
 
src
src
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Cargo.toml
Cargo.toml
 
 
LICENSE-APACHE
LICENSE-APACHE
 
 
LICENSE-MIT
LICENSE-MIT
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
clippy.toml
clippy.toml
 
 
deny.toml
deny.toml
 
 
rustfmt.toml
rustfmt.toml
 
 

Repository files navigation

bilby

CI Crates.io Docs.rs License MSRV

A high-performance numerical quadrature (integration) library for Rust.

  • Comprehensive -- Gauss-Legendre, Gauss-Kronrod, Jacobi, Hermite, Laguerre, Chebyshev, Radau, Lobatto, Clenshaw-Curtis, tanh-sinh, oscillatory, Cauchy PV
  • Adaptive integration -- QUADPACK-style error-driven refinement with configurable GK pairs
  • Multi-dimensional -- tensor products, Smolyak sparse grids, Genz-Malik adaptive cubature, quasi-Monte Carlo (Sobol, Halton)
  • Generic over F: Float -- works with f32, f64, and AD types (e.g., echidna)
  • no_std compatible -- works without the standard library (with alloc)
  • Optional parallelism -- parallel feature for rayon-based _par methods
  • Precomputed rules -- generate nodes/weights once, integrate many times with zero allocation

Quick Start

Add to Cargo.toml:

[dependencies]
bilby = "0.2"
use bilby::GaussLegendre;

// Create a 10-point Gauss-Legendre rule
let gl = GaussLegendre::new(10).unwrap();

// Integrate x^2 over [0, 1] (exact result = 1/3)
let result = gl.rule().integrate(0.0, 1.0, |x: f64| x * x);
assert!((result - 1.0 / 3.0).abs() < 1e-14);

Features

Feature Default Description
std Yes Enables std::error::Error impl and cache module
parallel No Enables rayon-based _par methods (implies std)

no_std support

bilby works in no_std environments (with alloc). Disable default features:

[dependencies]
bilby = { version = "0.2", default-features = false }

Parallelism

Enable the parallel feature for parallel variants of integration methods:

[dependencies]
bilby = { version = "0.2", features = ["parallel"] }

This provides integrate_composite_par, integrate_par, integrate_box_par, MonteCarloIntegrator::integrate_par, and GaussLegendre::new_par.

Development

cargo test                         # Run tests (default features)
cargo test --all-features          # Run tests including parallel
cargo test --no-default-features   # Run tests in no_std mode
cargo bench                        # Run benchmarks
cargo clippy --all-features        # Lint

License

Licensed under either of

  • Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Contributing

See CONTRIBUTING.md for guidelines.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

A high-performance numerical quadrature (integration) library for Rust

docs.rs/bilby

Topics

gauss-legendreintegrationmathematicsnumerical-methodsquadraturerustscientific-computing

Resources

Readme

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

2 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.