Custom Ufuncs: @vectorize vs. @guvectorize in Numba

Numba's `@vectorize` decorator converts scalar Python functions into fast NumPy ufuncs for element-wise operations, while `@guvectorize` (generalized ufuncs) allows more complex operations on arrays of arbitrary dimensions, crucial for tasks like convolutions or running medians.

Sources

Open the full topic