FrankenNumPy

Docs/Context

Limitations

What doesn't work today.

  • No PyPI release yet. pip install . and maturin build --release produce 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. The fnp_python module reaches 100% of numpy.__all__ (499/499 names against the numpy<2.5 CI oracle — see Supported NumPy oracle), structurally locked.
  • No BLAS/LAPACK backend in the default Rust build. fnp-linalg uses 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's numpy.linalg (LAPACK). Per accepted docs/adr/ADR-001-parity-pivot.md (bead deadlock-audit-rc0923-epic-71qy3.13), an opt-in cblas-lapack feature in fnp-linalg (off by default, never enabled in benchmark arms) is tracked under deadlock-audit-043z0.
  • Complex elementwise arithmetic uses interleaved storage. Complex64/Complex128 dtypes store real/imaginary parts as interleaved floats. Elementwise multiply and divide apply true complex arithmetic (a+bi)(c+di) = (ac−bd)+(ad+bc)i, but the interleaved representation adds overhead vs native complex types.
  • multivariate_normal uses Cholesky. NumPy defaults to SVD. Switching would pull fnp-linalg into fnp-random's dependency graph (currently fnp-random depends only on the dependency-free fnp-random-core, plus intra-workspace fnp-ndarray, getrandom for OS entropy, and rayon for data-parallel jump-ahead fills — those three optional, default-on features).
  • multivariate_hypergeometric uses sequential draws. NumPy uses the random_mvhg_marginals algorithm.
  • 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 in BinaryOp::is_parallel_worth / UnaryOp::is_parallel_worth and in per-op size gates. Compute-heavy ops (power, hypot, arctan2, logaddexp, the transcendental unaries, reductions, sorts, set-ops, GEMM) parallelize; in the Rust API add/sub/mul/div stay serial because they are memory-bandwidth-bound, where extra threads buy nothing. From Python, large float64 add/subtract/multiply run NumPy's own loop, and divide is native and parallel from 2^21 elements. The asupersync integration is separate and orchestrates conformance pipelines, not array computation.
  • f64 internal representation for UFuncArray. Numeric values are stored as Vec<f64> internally for arithmetic. For i64/u64 values > 2^53, IntegerSidecar preserves 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 all UFuncArray integer ufuncs is tracked under deadlock-audit-cf878 (ADR-001 Stream 3); the fnp_python fast 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-lapack feature is tracked under deadlock-audit-043z0 per ADR-001. Where NumPy has no BLAS path — float16, integer matmul, batched small matrices — FrankenNumPy wins outright (see §Performance).
  • std-only — no no_std support. All 11 crates link to the Rust standard library; there are zero #![no_std] declarations and no panic_handler attributes in the workspace (verified via grep). The codebase uses std::sync::{Arc, Mutex, RwLock, OnceLock}, std::time::SystemTime, std::fs, std::process::Command, etc. throughout. Embedded / no_std targets are out of scope for this project.

This section in the README on GitHub