vectorize.
__call__
Return arrays with the results ofpyfunc broadcast (vectorized) overargs andkwargs not inexcluded.
numpy.vectorize
numpy.frompyfunc