Given a NumPy array A, what is the fastest/most efficient way to apply the same function, f, to every cell?
Suppose that we will assign to A(i,j) the f(A(i,j)).
The function, f, doesn't have a binary output, thus the mask(ing) operations won't help.
Is the "obvious" double loop iteration (through every cell) the optimal solution?