ak.numexpr.evaluate — Awkward Array documentation

# ak.numexpr.evaluate

ak.numexpr.evaluate(expression, local_dict=None, global_dict=None, order='K', casting='safe', **kwargs)

See numexpr.evaluate for a description of each parameter. This function reproduces NumExpr’s interface, except that the expression can contain references to ak.Array objects as well as NumPy arrays.

The arrays are broadcasted according to rules described in ak.broadcast_arrays. The expression applies to the numeric leaves of the data structure and the output maintains that structure, just as ak.Array.__array_ufunc__ preserves structure through NumPy [universal functions](https://docs.scipy.org/doc/numpy/reference/ufuncs.html).

To do: examples.

See also ak.numexpr.re_evaluate.