What is the most efficient way to map a function over a numpy array? The way I\'ve been doing it in my current project is as follows:
import numpy as np x
As mentioned in this post, just use generator expressions like so:
numpy.fromiter(((x) for x in ),,)