Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

vectorize function python numpy

>>> vfunc = np.vectorize(myfunc)
>>> vfunc([1, 2, 3, 4], 2)
array([3, 4, 1, 2])
Source by numpy.org #
 
PREVIOUS NEXT
Tagged: #vectorize #function #python #numpy
ADD COMMENT
Topic
Name
7+5 =