Given a NumPy array A, what is the fastest/most efficient way to apply the same function, f, to every cell?
A similar question is: Mapping a NumPy array in place. If you can find a ufunc for your f(), then you should use the out parameter.