Nabled
Nabled is an ndarray-native Rust numerical library focused on production-grade linear algebra and ML-oriented matrix/vector operations.
Install
[]
= "0.0.2"
Current Direction
- Ndarray-native API and implementation model.
- Strict focus on correctness, performance, and composability.
- No Arrow-specific types in
nabledAPIs. - Workspace architecture (
nabled-core,nabled-linalg,nabled-ml, facadenabled).
See docs/README.md for current architecture and roadmap.
Implemented Domains
- SVD, QR, LU, Cholesky, Eigen, Schur, Polar
- Matrix functions (exp/log/power/sign)
- Triangular solve, Sylvester/Lyapunov
- PCA, regression, iterative solvers
- Numerical Jacobian/gradient/Hessian
- Statistics utilities
- Vector primitives (dot/norm/cosine/pairwise/batched)
Quick Example
use arr2;
use svd;
Namespaced API
nabled::core: shared errors, validation, and prelude exports.nabled::linalg: linear algebra and decomposition modules.nabled::ml: ML-oriented numerical routines.
Features
blas: enablesndarray/blasacross participating workspace crates.openblas-system: enables provider-backed OpenBLAS/LAPACK paths.accelerator-rayon: enables selected parallel CPU kernels.accelerator-wgpu: enables selected WGPU-backed kernels.
[]
= { = "0.0.2", = ["openblas-system"] }
Feature behavior:
openblas-systemimpliesblas.- Provider selection is compile-time and internal to decomposition paths.
- Backend acceleration is compile-time and kernel-family-specific.
Quality Gates
On macOS, provider-enabled just recipes automatically set PKG_CONFIG_PATH and OPENBLAS_DIR for Homebrew OpenBLAS (/opt/homebrew/opt/openblas). No manual env export is required for those recipes.
Benchmarks
License
Licensed under either:
- MIT license
- Apache License, Version 2.0
at your option.