#quadrature #integral #no-std #numeric

no-std gkquad

Numerical integration library for Rust

3 releases

0.0.4 Feb 28, 2020
0.0.3 Feb 27, 2020
0.0.2 Feb 12, 2020
0.0.1 Feb 9, 2020

#725 in Math


Used in alpha_stable

MIT license

130KB
3K SLoC

gkquad

Version docs License: MIT Twitter: Kogia_sima

Numerical Integration Library for Rust

Features

  • Compatible with latest stable/beta/nightly Rust compiler
  • Compatible with no_std
  • Extremely fast and simple API
  • Semi-verified computation (You can specify the maximum calculation tolerance)
  • Lightweight (small dependencies)
  • Highly extensible (you can implement a new algorithm)

Note: no_std compatibility

gkquad depends on alloc crate, so you have to specify the global allocator in order to use gkquad.

If you want to use this crate in no_std environment, you must disable the std feature flag.

[dependencies.gkquad]
version = "0.0.4"
default-features = false
features = ["single"]

Performance

Here is the benchmark measured on the Intel Core(TM) i5 @ 1.60GHz (without turbo boost)

$ cargo bench

     Running /tmp/gkquad-rs/target/release/deps/single-3b52efd7f739cf4b

running 3 tests
test infinite_range  ... bench:         524 ns/iter (+/- 10)
test simple          ... bench:          96 ns/iter (+/- 1)
test singular_points ... bench:       1,516 ns/iter (+/- 2)

test result: ok. 0 passed; 0 failed; 0 ignored; 3 measured

Source code can be found here.

Author

👤 Kogia-sima

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2020 Kogia-sima.

This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator

Dependencies

~73KB