You can do brainless for loops in Python really easily.
Oh yeah, toss numba or cython on top and you are back to numpy speed...
Oh yeah, toss numba or cython on top and you are back to numpy speed...
(Admittedly, there are more features, but in my book, I demonstrate pure Python code that runs as fast as numpy and cython with this decorator added.)