Efficient evaluation of a function at every cell of a NumPy array Efficient evaluation of a function at every cell of a NumPy array numpy numpy