Tensors and math

Libraries for tensors, arrays, linear algebra, statistics, optimization and GPU compute.

32 projects. Checked .

Start here

The Featured projects with the most downloads.

All projects

Order: strongest tier first, then most downloads, then name, with unmeasured values last. A library counts downloads over 30 days. An app counts binary downloads per release. An app with none counts its crate downloads over 30 days.

What do the tiers mean?
Featured
Shown first. It passes every Featured gate.
Listed
Shown in the normal listing. No other tier applies.
New
A project whose first release is recent.
Archived
No longer maintained, or ended by its author.

Tiers come from published rules over raw signals. Stars alone never qualify a project.

Active dependents: crates from other owners that depend on this project in a current release. One owner counts at most once.

Movement needs more history.

Tensors and math
ProjectDownloadsDependentsStarsLatest releaseRuns on (GPU)Native codeLicense
ndarray Featured

An n-dimensional array for general elements and for numerics. Lightweight array views and slicing; views support chunking and splitting.

13,748,379 downloads over 30 days 2,888 4,344 0.17.2 GPU support unknown Binds native code: cblas-sys (feature blas) Apache-2.0 OR MIT
nalgebra Featured

General-purpose linear algebra library with transformations and statically-sized or dynamically-sized matrices.

6,251,820 downloads over 30 days 2,119 4,810 0.35.0 GPU support unknown Binds native code: blas-sys, lapack-sys, defmt (feature defmt) Apache-2.0
statrs Featured

Statistical computing library for Rust

4,515,476 downloads over 30 days 444 839 0.19.1 GPU support unknown No native code found MIT
rustfft Featured

High-performance FFT library written in pure Rust.

4,266,035 downloads over 30 days 571 963 6.4.1 GPU support unknown No native code found Apache-2.0 OR MIT
rust-numpy Featured

PyO3-based Rust bindings of the NumPy C-API

Python bindings

3,598,884 downloads over 30 days 388 1,391 0.30.0 GPU support unknown No native code found BSD-2-Clause
sprs Featured

A sparse matrix library

974,572 downloads over 30 days 107 653 0.11.6 GPU support unknown No native code found Apache-2.0 OR MIT
faer Featured

linear algebra library

633,735 downloads over 30 days 327 Not measured 0.24.4 GPU support unknown No native code found MIT
cubecl Featured

Multi-platform high-performance compute language extension for Rust.

523,446 downloads over 30 days 145 2,490 0.11.3 CUDA, WebGPU, Metal, ROCm, Vulkan Binds native code: cubecl-hip-sys (feature hip), llvm-sys (feature cpu), tracy-client-sys (feature profile-tracy) Apache-2.0 OR MIT
argmin Featured

Numerical optimization in pure Rust

310,783 downloads over 30 days 98 1,278 0.11.0 GPU support unknown Binds native code: lapack-sys (feature ndarray_v0_15) Apache-2.0 OR MIT
Listed 19 projects
ug Listed Dormant

Micro compiler for tensor operations.

Python bindings

688,399 downloads over 30 days 3 75 0.5.0 CUDA, Metal No native code found Apache-2.0 OR MIT
linfa-linalg Listed Dormant

Pure-Rust implementation of linear algebra routines for ndarray

198,623 downloads over 30 days 20 39 0.2.1 GPU support unknown No native code found Apache-2.0 OR MIT

Interpolation package for ndarray

158,299 downloads over 30 days 4 12 0.6.0 GPU support unknown No native code found MIT
peroxide Listed

Rust comprehensive scientific computation library contains linear algebra, numerical analysis, statistics and machine learning tools with familiar syntax

Python bindings

56,548 downloads over 30 days 9 732 0.43.1 GPU support unknown Binds native code: openblas-src (feature O3-openblas-system), blas-sys (feature O3), hdf5-metno-sys (feature nc), lapack-sys (feature O3), libz-sys (feature nc) and 1 more Apache-2.0 OR MIT
basin Listed

Numerical optimization in pure Rust, with pluggable linear-algebra backends and WASM support.

22,519 downloads over 30 days 9 128 3.2.0 GPU support unknown Binds native code: blas-sys (feature nalgebra_latest-lapack), lapack-sys (feature nalgebra_latest-lapack) Apache-2.0 OR MIT
matfile Listed Dormant

Matfile is a library for reading and writing Matlab ".mat" data files.

10,737 downloads over 30 days 5 14 0.5.0 GPU support unknown No native code found MIT
ndrustfft Listed

N-dimensional FFT, real-to-complex FFT and real-to-real DCT

10,619 downloads over 30 days 12 32 0.6.2 GPU support unknown No native code found MIT
polyfit-rs Listed

Polynomial fitting of data like in numpy.polyfit().

5,047 downloads over 30 days 8 13 0.2.2 GPU support unknown No native code found Apache-2.0

A Rust library for solving differential equations.

4,465 downloads over 30 days 4 83 0.7.0 GPU support unknown No native code found Apache-2.0
rstats Listed

Statistics, Information Measures, Data Analysis, Linear Algebra, Clifford Algebra, Machine Learning, Geometric Median, Matrix Decompositions, Mahalanobis Distance, Hulls, Multithreading..

2,664 downloads over 30 days 6 57 2.1.15 GPU support unknown No native code found Apache-2.0
ad_trait Listed

Easy to use, efficient, and highly flexible automatic differentiation in Rust

2,070 downloads over 30 days 2 24 0.3.1 GPU support unknown No native code found Apache-2.0 OR MIT
numr Listed

The base for numerical code in Rust, in the role NumPy has in Python: n-dimensional tensors, linear algebra, FFT, statistics and autograd on CPU, CUDA and WebGPU. The backends use native kernels, with no cuBLAS, MKL or other vendor math library.

1,673 downloads over 30 days 7 59 0.15.2 CUDA, WebGPU Binds native code: ring (feature distributed) Apache-2.0
russell Listed

Scientific laboratory for linear algebra and numerical mathematics

1,282 downloads over 30 days 5 207 5.0.0 GPU support unknown Build uses a native toolchain: cc, pkg-config MIT
scirs Listed

A Rust port of SciPy with AI/ML extensions - Scientific Computing and AI Library (scirs2)

Python bindings

117 downloads over 30 days 198 306 0.6.5 CUDA, WebGPU, Metal, ROCm, Vulkan Binds native code: perf-event-open-sys (feature profiling_perf). Build uses a native toolchain: cc (feature c-opt) Apache-2.0
oxicuda Listed

OxiCUDA replaces the entire NVIDIA CUDA Toolkit software stack with type-safe, memory-safe Rust code.

65 downloads over 30 days 36 145 0.5.5 WebGPU, Metal, ROCm, Vulkan No native code found Apache-2.0
emu Listed Dormant

A low-level GPGPU compute library featuring cross-platform support and SPIR-V as input

49 downloads over 30 days 0 1,604 0.1.1 WebGPU Binds native code: cl-sys, link-cplusplus (feature glsl-compile), shaderc-sys (feature glsl-compile) MIT
solvr Listed

Scientific computing on numr, in the role SciPy has in Python, with a module map for SciPy users: optimization, ODE, DAE and PDE solvers, interpolation, statistics, signal processing, spatial algorithms and clustering.

31 downloads over 30 days 0 11 0.3.1 CUDA, WebGPU No native code found Apache-2.0
rapl Listed

A crate that makes numerical scripting with Rust simple and enjoyable.

21 downloads over 30 days 1 107 0.4.0 GPU support unknown No native code found MIT
wgmath App Listed

GPU scientific computing on every platform

Not measured Not applicable 150 Not measured Not measured Not measured Apache-2.0
New 1 project
pounce New

Single-crate facade for POUNCE from Rust: re-exports the TNLP trait, the IpoptApplication driver, and the supporting types in one place (plus a prelude), with feature-gated modules for the convex/LP/QP, active-set QP, and sensitivity paths.

2,486 downloads over 30 days 9 81 0.16.0 GPU support unknown Binds native code: pounce-hsl (feature ma57) EPL-2.0