Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

russell

> DevOps
Open source

Rust Scientific Library. ODE, DAE, and PDE solvers. Special functions (Bessel, Elliptic, Beta, Gamma, Erf). Linear algebra. Sparse solvers. Probability distribu

191 stars0 likes2 views
WebsiteGitHub

About

Rust Scientific Library. ODE, DAE, and PDE solvers. Special functions (Bessel, Elliptic, Beta, Gamma, Erf). Linear algebra. Sparse solvers. Probability distribu

Russell - Rust Scientific Library

Numerical mathematics, numerical continuation, differential equations, special math functions, high-performance (sparse) linear algebra, statistics.





Contents

  • Introduction
    • External associated and recommended crates
    • Features
  • Installation
    • Arch Linux
      • Option 1: (default) OpenBLAS and SuiteSparse from the package manager
      • Option 2: Locally compiled SuiteSparse and MUMPS with OpenBLAS
      • Option 3: Locally compiled SuiteSparse and MUMPS with Intel MKL
    • Debian/Ubuntu Linux
      • Option 1: (default) OpenBLAS and SuiteSparse from the package manager
      • Option 2: Locally compiled SuiteSparse and MUMPS with OpenBLAS
      • Option 3: Locally compiled SuiteSparse and MUMPS with Intel MKL
    • Rocky Linux
      • Option 1: (default) OpenBLAS and SuiteSparse from the package manager
    • macOS
      • Option 1: (default) OpenBLAS and SuiteSparse from the package manager
    • Windows
    • Number of threads
  • Examples
    • (lab) Numerical integration (quadrature)
    • (lab) Solution of PDEs using spectral collocation
    • (lab) Matrix visualization
    • (lab) Singular value decomposition
    • (lab) Cholesky factorization
    • (lab) Solution of a (dense) linear system
    • (lab) Reading table-formatted data files
    • (lab) Line search for optimization
    • (nonlin) Numerical continuation of a B-spline curve
    • (sparse) Solution of a sparse linear system
    • (sparse) Solution of a complex sparse linear system
    • (ode) Solution of the Brusselator ODE
    • (ode) Solution of the Brusselator PDE
    • (pde) Spectral collocation in 2D with transfinite mapping
    • (stat) Generate the Frechet distribution
    • (tensor) Allocate second-order tensors
  • Roadmap
  • For developers
    • russell_lab — BLAS/LAPACK
    • russell_sparse — sparse solvers

Introduction

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:

  1. russell_lab — Core mathematical and linear algebra laboratory:
    • Data structures: NumVector, NumMatrix (column-major layout for direct BLAS/LAPACK interoperability), and stack-allocated SmallVector/SmallMatrix.
    • Linear Algebra: BLAS 1/2/3 and LAPACK routines (dense solves, SVD, Cholesky, symmetric and general eigenvalues/eigenvectors for real and complex numbers).
    • Numerics & Special Functions: Bessel, modified Bessel, Beta, Gamma, Erf, Elliptic integrals, Chebyshev/Legendre polynomials, Lagrange interpolation, B-splines, quadrature, Brent's root-finding, Newton solver, cubic solver, and numerical derivatives/Jacobians.
    • Backends: OpenBLAS / Netlib LAPACK or Intel oneAPI MKL (via intel_mkl feature).
  2. russell_tensor — Tensor calculus and continuum mechanics:
    • Tensor types: Tensor1 (3D vectors), Tensor2 (2nd-order), Tensor3 (3rd-order), Tensor4 (4th-order).
    • Kelvin-Mandel representation: Maps tensors to vector/matrix spaces preserving Euclidean norms.
    • Operations & Calculus: Dot/ddot contractions, dyadic products, polar decompositions, principal/deviatoric/octahedral invariants, Lode invariant, first and second derivatives of invariants and tensor functions, linear elasticity / Hooke's law.
  3. russell_sparse — Sparse matrix structures and direct solvers:
    • Formats: CooMatrix, CscMatrix, CsrMatrix (both real f64 and Complex64).
    • Direct Solvers: UMFPACK (SuiteSparse), MUMPS (local_sparse), and NVIDIA cuDSS (cudss).
    • Utilities: Matrix Market I/O, vismatrix exporter, numerical Jacobian assembly, linear system verification.
  4. russell_ode — ODE and Index-1 DAE solvers:
    • Explicit Runge-Kutta (DoPri5, DoPri8, Forward Euler) with stiffness detection and dense output.
    • Implicit solvers: Backward Euler and Radau5 (supports mass matrices, DAEs, and concurrent real/complex linear solves).
  5. russell_pde — Partial differential equation tools:
    • 1D/2D Finite Difference Methods (FDM) and Spectral Collocation (SPC) on Chebyshev/Legendre-Lobatto nodes.
    • Transfinite mappings for deformed/curved domains.
    • Essential boundary conditions via System Partitioning (SPS) or Lagrange Multipliers (LMM).
  6. russell_nonlin — Continuation methods for parameterized nonlinear systems $G(u, \lambda) = 0$:
    • Predictor-corrector continuation: Natural continuation and Pseudo-arclength continuation (handling folds/limit points).
  7. russell_stat — Engineering statistics and extreme value distributions
    • Frechet, Gumbel, Lognormal, Normal, Uniform, quantiles, IQR, ASCII histogram generation.

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_nonlin

External associated and recommended crates

The following crates are not part of russell but are associated with it and recommended:

  • plotpy Plotting tools using Python3/Matplotlib as an engine (for quality graphics)
  • tritet Triangle and tetrahedron mesh generators (with Triangle and Tetgen)
  • gemlab Geometry, meshes, and numerical integration for finite element analyses
  • benchmark-russell Performance benchmarks for this project

Features

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:

toml
[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.

Installation

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

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustbessel-functiondifferential-equationseigenvalueseigenvectors

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理