High-performance numerical computing library in pure Rust — the production-grade NumPy alternative. 222k+ SLoC, 4,704+ tests, 128+ SIMD-vectorized functions, N-dimensional arrays, advanced linalg via OxiBLAS, automatic differentiation, FFT, GPU (wgpu), Python bindings (PyO3), Arrow interop. 80–172% of OpenBLAS performance, zero C/Fortran deps. The sovereign numerical layer for SciRS2 and the entire COOLJAPAN ecosystem (now 21M+ SLoC total).
The numerical computing foundation of the COOLJAPAN scientific computing ecosystem just leveled up again.
Today we released NumRS2 0.3.1 — a complete, production-grade pure Rust numerical computing library that serves as a high-performance, memory-safe alternative to NumPy.
No C. No Fortran. No system BLAS/LAPACK.
No Python interpreter overhead. No FFI.
Just clean, blazing-fast N-dimensional arrays and mathematical operations that compile to a single static binary (or WASM) and run everywhere — from laptops to browsers to edge devices to cloud clusters.
For decades, high-performance numerical computing in the Python world meant depending on NumPy (built on C/Fortran) with all its system dependencies and safety trade-offs.
These tools are powerful but suffer from:
NumRS2 0.3.1 ends all of that.
It delivers near or superior performance to OpenBLAS while being 100% memory-safe and portable.
Notable results:
NumRS2 is built directly on the SciRS2 ecosystem (v0.3.4) and follows a trait-based, extensible architecture:
Core Layer
N-dimensional arrays with cache-friendly layout, broadcasting, fancy indexing, boolean masking, and expression templates for lazy evaluation + operation fusion.
Linear Algebra & Sparse
Full integration with OxiBLAS (pure Rust BLAS/LAPACK), matrix decompositions (SVD, QR, LU, Cholesky), sparse formats (COO/CSR/CSC/DIA), and iterative solvers (CG, GMRES, BiCGSTAB).
Advanced Numerics
Optimization (BFGS, L-BFGS, Trust Region, Nelder-Mead, Levenberg-Marquardt), root-finding (Brent, Newton-Raphson, Halley), automatic differentiation (forward/reverse + higher-order), FFT (1D/2D/real), polynomial interpolation.
Hardware Acceleration & Interop
Automatic SIMD dispatch via SciRS2-Core, GPU acceleration (wgpu: Vulkan/Metal/DX12/WebGPU), parallel execution with work-stealing scheduler, Apache Arrow + Feather + PyO3 Python bindings.
Key Rust advantages:
NumRS2 is now the official numerical computing backend for the entire COOLJAPAN stack (total ecosystem: 21M+ SLoC Rust, 597 crates, 40+ production-grade libraries):
Repository: https://github.com/cool-japan/numrs
Star the repo if you want high-performance numerical computing without NumPy’s native dependencies or Python overhead.
The era of “just pip install numpy” with all its C/Fortran baggage is coming to an end.
Pure Rust numerical computing is here — fast, safe, and sovereign.
— KitaSan at COOLJAPAN OÜ March 21, 2026