Most efficient way to map function over numpy array Most efficient way to map function over numpy array numpy numpy