Rust Scientific Library. ODE, DAE, and PDE solvers. Special functions (Bessel, Elliptic, Beta, Gamma, Erf). Linear algebra. Sparse solvers. Probability distribu
Rust Scientific Library. ODE, DAE, and PDE solvers. Special functions (Bessel, Elliptic, Beta, Gamma, Erf). Linear algebra. Sparse solvers. Probability distribu
Numerical mathematics, numerical continuation, differential equations, special math functions, high-performance (sparse) linear algebra, statistics.
Russell (Rust Scientific Library) helps develop high-performance computations involving linear algebra, sparse linear systems, numerical mathematics (continuation), differential equations, statistics, and continuum mechanics using the Rust programming language. While applications built with Russell mainly focus on computational mechanics, its foundation in fundamental mathematics and numerics makes it useful for other disciplines as well.
This project aims to deliver efficient, reliable, and easy-to-maintain code. To support this, Russell includes unit and integration tests, with test coverage required to be over 95%. For better code maintenance, Russell avoids overly complex Rust constructions. However, it still makes use of Rust features such as generics, traits, enums, options, and results. Another goal of Russell is to provide examples of all computations in the documentation to assist users and developers.
This project is split into the following crates:
Below is a summary of internal dependencies:
| Crate | Key dependencies |
|---|---|
russell_lab |
num-complex, serde |
russell_sparse |
russell_lab |
russell_stat |
russell_lab, rand |
russell_tensor |
russell_lab, serde |
russell_pde |
russell_lab, russell_sparse |
russell_ode |
russell_lab, russell_sparse, russell_pde |
russell_nonlin |
russell_lab, russell_sparse, russell_stat |
russell_lab
├── russell_stat
├── russell_tensor
├── russell_sparse
│ ├── russell_pde
│ │ └── russell_ode
│ └── russell_nonlinThe following crates are not part of russell but are associated with it and recommended:
This project employs OpenBLAS (or Intel MKL) for linear algebra computations and SuiteSparse (or MUMPS) for the solution of large (sparse) linear systems of equations. See the Installation section for instructions on how to install these libraries on different platforms.
To use Intel MKL, the intel_mkl feature must be selected. There is also an option to compile SuiteSparse and MUMPS locally, which may yield better performance. When local compilation is used, the local_sparse feature is selected.
Some crates in this project can also use NVIDIA cuDSS, a direct sparse solver for NVIDIA GPUs. This feature can be enabled by the cudss flag. Note that cuDSS is in Preview Mode .
The table below summarizes the features of each crate:
intel_mkl |
local_sparse |
cudss |
|
|---|---|---|---|
russell_lab |
✓ | ||
russell_nonlin |
✓ | ✓ | ✓ |
russell_ode |
✓ | ✓ | ✓ |
russell_pde |
✓ | ✓ | ✓ |
russell_sparse |
✓ | ✓ | ✓ |
russell_stat |
✓ | ||
russell_tensor |
✓ |
Below is an example of how to enable the intel_mkl and local_sparse features with the russell_sparse crate in the Cargo.toml file:
[dependencies]
russell_lab = { version = "*", features = ["intel_mkl"] }
russell_sparse = { version = "*", features = ["intel_mkl", "local_sparse"] }Replace "*" with the desired version. Note that russell_sparse (and all other crates in this project) require russell_lab as a dependency.
Russell requires some non-Rust libraries (OpenBLAS and SuiteSparse) to achieve the maximum performance. These libraries can be installed as explained in each subsection next. Alternatively, Intel MKL may be used instead of OpenBLAS. In this case, the feature named intel_mkl must be enabled.
In addition to SuiteSparse (UMFPACK), the MUMPS solver may be used as an optional feature. In this case, MUMPS must be locally compiled and installed and the feature named local_sparse must be enabled. Note that we could possibly use MUMPS from the package manager of your Linux distribution, however, MUMPS is
No open issues yet, or sync has not completed.