DACE-RS
Rust wrapper of DACE, the Differential Algebra Computational Toolbox.
Introduction
DACE-RS is a Rust wrapper of DACE, the Differential Algebra Computational Toolbox (https://github.com/dacelib/dace).
You can find further details on Differential Algebra and its applications on that web page.
Installation
DACE-RS can be used in your project by including it as a Cargo dependency.
Add this to your Cargo.toml:
[]
= "0.2"
If you need to use the AlgebraicVector<DA>::invert() function,
you need to include ndarray-linalg and specify a LAPACK binding
(see: https://github.com/rust-ndarray/ndarray-linalg).
Example:
[]
= "0.2"
= { = "0.16", = ["openblas-static"] }
This is needed also to run tests, e.g.:
cargo test --features=ndarray-linalg/openblas-static
CMake and a C compiler must be installed in the system to build the DACE Core library.
Tutorials
The original DACE C++ tutorials have been translated to Rust and are available in the examples folder: https://github.com/giovannipurpura/dace-rs/tree/master/examples
Examples
This is a quick example for basic usage:
use *; // import all DACE elements