Docs/Context
Limitations
What doesn't work today.
- No PyPI release yet.
pip install .andmaturin build --releaseproduce a working wheel from the checkout (added 2026-09-03, verified on Linux / CPython 3.13), but nothing is published to PyPI and no macOS or Windows wheels have been built or tested. Thefnp_pythonmodule reaches 100% ofnumpy.__all__(499/499 names against thenumpy<2.5CI oracle — see Supported NumPy oracle), structurally locked. - No BLAS/LAPACK backend in the default Rust build.
fnp-linalguses pure-Rust implementations by default (Householder QR, Golub–Kahan SVD, implicit shifted QR for eigenvalues) so the 10-crate core stays#![forbid(unsafe_code)]and C-dependency-free. Competitive with BLAS for small matrices; slower for large ones. From Python, the 2-D decompositions and solvers call NumPy'snumpy.linalg(LAPACK). Per accepteddocs/adr/ADR-001-parity-pivot.md(beaddeadlock-audit-rc0923-epic-71qy3.13), an opt-incblas-lapackfeature infnp-linalg(off by default, never enabled in benchmark arms) is tracked underdeadlock-audit-043z0. - Complex elementwise arithmetic uses interleaved storage. Complex64/Complex128 dtypes store real/imaginary parts as interleaved floats. Elementwise
multiplyanddivideapply true complex arithmetic(a+bi)(c+di) = (ac−bd)+(ad+bc)i, but the interleaved representation adds overhead vs native complex types. multivariate_normaluses Cholesky. NumPy defaults to SVD. Switching would pullfnp-linalgintofnp-random's dependency graph (currentlyfnp-randomdepends only on the dependency-freefnp-random-core, plus intra-workspacefnp-ndarray,getrandomfor OS entropy, andrayonfor data-parallel jump-ahead fills — those three optional, default-on features).multivariate_hypergeometricuses sequential draws. NumPy uses therandom_mvhg_marginalsalgorithm.- Parallelism is per-op, not blanket. Array operations are
rayon-parallel where measurement showed it pays and deliberately serial where it did not — the policy is explicit inBinaryOp::is_parallel_worth/UnaryOp::is_parallel_worthand in per-op size gates. Compute-heavy ops (power,hypot,arctan2,logaddexp, the transcendental unaries, reductions, sorts, set-ops, GEMM) parallelize; in the Rust APIadd/sub/mul/divstay serial because they are memory-bandwidth-bound, where extra threads buy nothing. From Python, large float64add/subtract/multiplyrun NumPy's own loop, anddivideis native and parallel from 2^21 elements. Theasupersyncintegration is separate and orchestrates conformance pipelines, not array computation. - f64 internal representation for
UFuncArray. Numeric values are stored asVec<f64>internally for arithmetic. For i64/u64 values > 2^53,IntegerSidecarpreserves exact integer values through storage round-trips; ten integer binary ops recompute exactly on the sidecar and every other operation on such values rounds through f64. Extending exact 64-bit integer execution across allUFuncArrayinteger ufuncs is tracked underdeadlock-audit-cf878(ADR-001 Stream 3); thefnp_pythonfast paths already compute integers in their native width. - Large dense matmul vs a tuned BLAS. Square GEMM above roughly 2000×2000 remains slower than NumPy on OpenBLAS. The default Rust crates link no C BLAS/LAPACK; an opt-in
cblas-lapackfeature is tracked underdeadlock-audit-043z0per ADR-001. Where NumPy has no BLAS path —float16, integer matmul, batched small matrices — FrankenNumPy wins outright (see §Performance). std-only — nono_stdsupport. All 11 crates link to the Rust standard library; there are zero#![no_std]declarations and nopanic_handlerattributes in the workspace (verified via grep). The codebase usesstd::sync::{Arc, Mutex, RwLock, OnceLock},std::time::SystemTime,std::fs,std::process::Command, etc. throughout. Embedded /no_stdtargets are out of scope for this project.