Docs/Overview
API Surface
1,805 public Rust functions across the 11 library crates (rg -c '^\s*pub fn ' over crates/*/src/**/*.rs, excluding the src/bin/ binary entry-points; 2026-10-08 count), exposing 100% of numpy.__all__ (499/499 names) through the fnp_python Python module. Coverage is enforced by fnp_python_covers_full_numpy_all in crates/fnp-python/tests/conformance_remaining_top_level_attrs.rs, which iterates numpy.__all__ at run time against the live numpy on the build host. The per-function crates/fnp-python/tests/conformance_*.rs shards add another 194 dedicated parity files on top of the surface lock (plus 3 sibling conformance_*.rs files in the Rust-side crates: fnp-dtype/tests/conformance_dtype.rs, fnp-linalg/tests/conformance_linalg.rs, fnp-ndarray/tests/conformance_broadcast.rs — Rust-level conformance shards that don't go through the PyO3 surface). The companion run_fnp_python_api_coverage gate independently tracks the Python-visible surface (exports=633 covered=599 missing=0 as of 2026-05-13), of which the PyO3 wrappers and identity-equal numpy re-exports together hit every name in numpy.__all__.
fnp_python also registers 11 PyO3 classes: Nditer / NditerStep (iterator state machine), FromPyFunc (callable wrapper; vectorize is NumPy's own class, re-exported), and the random submodule's SeedSequence, Generator, RandomState, plus the 5 bit-generator classes MT19937, PCG64, PCG64DXSM, Philox, SFC64. The r_ and c_ index objects are fnp singleton instances; mgrid and ogrid are NumPy's own objects (fnp_python.mgrid is numpy.mgrid).
| Category | Functions (highlights) |
|---|---|
| Array creation | zeros, ones, empty, full, arange, linspace, logspace, geomspace, eye, identity, diag, meshgrid, mgrid, ogrid, fromfunction, frombuffer, array, asarray, copy |
| Shape manipulation | reshape, ravel, flatten, transpose, swapaxes, expand_dims, squeeze, broadcast_to, broadcast_arrays, broadcast_shapes, concatenate, stack, vstack, hstack, dstack, column_stack, split, array_split, vsplit, hsplit, dsplit, tile, repeat, pad, append, delete, insert, roll, flip, fliplr, flipud, rot90, moveaxis, rollaxis, resize, trim_zeros, r_, c_ |
| Unary math | abs, negative, positive, sign, sqrt, square, cbrt, exp, exp2, expm1, log, log2, log10, log1p, sin, cos, tan, arcsin, arccos, arctan, sinh, cosh, tanh, arcsinh, arccosh, arctanh, degrees, radians, floor, ceil, rint, trunc, round, reciprocal, spacing, fabs, signbit, isnan, isinf, isfinite, logical_not, bitwise_not (43 variants of enum UnaryOp) |
| Binary math | add, subtract, multiply, divide, floor_divide, remainder, power, float_power, fmod, arctan2, copysign, heaviside, nextafter, fmax, fmin, logaddexp, logaddexp2, ldexp, hypot, gcd, lcm, bitwise_and/or/xor, comparisons (35 total) |
| Special | frexp, modf, divmod, isposinf, isneginf, bitwise_count, sort_complex, clip, where, copyto, sinc, unwrap, conj, real, imag, real_if_close, angle |
| Reductions | sum, prod, min, max, mean, var, std, argmin, argmax, cumsum, cumprod, cumulative_sum, cumulative_prod, all, any, count_nonzero, nansum, nanprod, nanmin, nanmax, nanmean, nanstd, nanvar, nanargmin, nanargmax, nancumsum, nancumprod, nanpercentile, nanquantile, ptp |
| Sorting / searching | sort, argsort, searchsorted (with side, sorter), partition, argpartition, unique, unique_all, unique_counts, unique_inverse, unique_values, nonzero, flatnonzero, argwhere, isin (with invert), extract, place, select, piecewise |
| Set operations | union1d, intersect1d, setdiff1d, setxor1d, isin (NumPy 2.x replacement for in1d) |
| Linear algebra | solve, det, inv, eig, eigh, eigvals, eigvalsh, svd, qr, cholesky, lstsq, norm, matrix_rank, matrix_power, multi_dot, tensorsolve, tensorinv, pinv, cond, slogdet, funm, expm, sqrtm, logm, polar, schur, solve_triangular, block, plus batched and complex variants (~100 public functions in fnp-linalg) |
| Random | Five bit generators (PCG64, PCG64DXSM, MT19937, Philox, SFC64); PCG64DXSM is the default and the bit-exact NumPy-parity reference. 40+ oracle-verified distributions (normal, uniform, binomial, poisson, gamma, beta, hypergeometric, multinomial, dirichlet, vonmises, zipf, …) |
| FFT (18 entry points) | fft, ifft, fft2, ifft2, fftn, ifftn, rfft, irfft, rfft2, irfft2, rfftn, irfftn, hfft, ihfft, fftfreq, rfftfreq, fftshift, ifftshift |
| Statistics | histogram, histogram2d, histogramdd, histogram_bin_edges, bincount, digitize, percentile, quantile, median, average, corrcoef, cov |
| Polynomials (5 families) | Power series, Chebyshev, Legendre, Hermite (physicist + probabilist), Laguerre. Full evaluation / arithmetic / calculus / root-finding / fitting / basis conversion suites |
| String arrays | 33 elementwise numpy.char functions |
| Financial | fv, pv, pmt, ppmt, ipmt, nper, rate, npv, irr, mirr |
| I/O | load, save, savez, savez_compressed, loadtxt, savetxt, genfromtxt, fromfile, tofile, fromstring, array2string, memmap helpers |
| Masked arrays | MaskedArray with reshape, transpose, concatenate, comparison ops, filled, compressed, shrink_mask, anom, fix_invalid, is_masked, make_mask, mask_or |
| Datetime / timedelta | UFuncArray with DType::DateTime64 / DType::TimeDelta64, built via UFuncArray::from_datetime_strings / from_timedelta_strings. Arithmetic, comparison, busday_count, busday_offset, is_busday. Units ns, us, ms, s, min, h, D, W, M, Y via DateTimeUnit. |
| Tensor + general ops | einsum, einsum_path, tensordot, kron, dot, matmul, vdot, inner, outer, convolve, correlate, gradient, diff, interp, clip, where, select, piecewise |
| Scimath | scimath_sqrt, scimath_log, scimath_log2, scimath_log10, scimath_logn, scimath_power, scimath_arccos, scimath_arcsin, scimath_arctanh (complex-aware extensions of real-domain math) |
| NumPy 2.0+ API | unique_all, unique_counts, unique_inverse, unique_values, permuted, matrix_transpose, cumulative_sum, cumulative_prod, trapezoid, unstack, vecdot |
See docs/planning/FEATURE_PARITY.md for the complete live parity matrix and per-crate test counts.