kuk / log-progress

https://habr.com/ru/post/276725/
MIT License
564 stars 60 forks source link

Vectorizing, any ideas? #12

Open kelvinwop opened 6 years ago

kelvinwop commented 6 years ago

say you've got a NumPy array [1,2,3...] and a function func(x)

so you do: vecfunc=numpy.vectorize(func) and then use the power of vectorization to: vecfunc(x)

how would you hack this together?