DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+5 =
Submit