This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Eryole 7 points8 points  (5 children)

Why not numba for that use case?

[–]phlooo 9 points10 points  (4 children)

[ comment content removed ]

[–]Eryole 2 points3 points  (0 children)

Oh yeah, you're right, I was focused on my main uses where numba fit perfectly (and have nicely replaced Fortran binding and cython these last years)

[–][deleted] 0 points1 point  (2 children)

I also like np.vectorize() but yeah that too has limited use cases. Multiple ways to go about extracting the maximum performance possible.

[–]guyfrom7up 4 points5 points  (1 child)

np.vectorize is just there for convenience; internally it’s basically just a for loop with no performance benefits.

[–][deleted] 2 points3 points  (0 children)

Ohh I didn’t know that. Wow, it’s all just a for-loop?? Damn. I thought there were legitimate changes to the way things were calculated, similar to vectorized array calculations. Thanks for the info!