FrankenNumPy

Docs/Context

Comparison with Other Rust Array Libraries

FrankenNumPy is not the first Rust array library. It is the only one that targets NumPy compatibility as the primary success metric. Some quick positioning:

Library What it is When you'd use it instead
ndarray The de-facto Rust ndarray crate. Generic over element type and dimensionality, with BLAS bindings via ndarray-linalg. Idiomatic Rust API designed from scratch. You're writing fresh Rust code that doesn't need NumPy semantics, you want compile-time dimensional checking via the Ix types, and a typed generic API matters more than NumPy parity.
nalgebra Linear-algebra library with statically-sized vectors and matrices. Strong on geometry, graphics, robotics. Your shapes are statically known and small, and you want the compiler to track them. Not a general N-D array library.
polars DataFrame engine (Arrow-backed), columnar, vectorized. You're doing dataframe-style analytics on tabular data, not numerical array math.
burn / candle Deep-learning tensor crates with autodiff and GPU backends. You want autograd, GPU, or modern DL primitives. Tensor shape and dtype semantics differ deliberately from NumPy.
FrankenNumPy NumPy-faithful array library with fnp_python PyO3 surface, dual-mode runtime, evidence ledger, and oracle-verified differential conformance. You need the NumPy semantic contract: exact promotion table, exact broadcast rules, exact RNG sequences, NumPy-compatible .npy/.npz. Or you're shipping a Rust app that needs to read/write data produced by NumPy on the other side of the wire.

The three libraries above are excellent in their target domains; FrankenNumPy is not trying to compete with them on idiom or on GPU. It is the right tool for "I need an answer NumPy would have given," and the wrong tool for almost everything else.


This section in the README on GitHub