Hi George,
what you see is due to the memory layout of numpy arrays. If you switch your
array to F-order you'll see that the two functions have the same timings, i.e.
both are fast (on my machine 25 times faster for the 1_000_000 points case).
Try:
vertices = np.array(np.random.random((n, 2))
ASPP2025: 17ᵗʰ Advanced Scientific Programming in Python Summer School
==
https://aspp.school
Scientists spend more and more time writing, maintaining, and debugging
software. While techniques for doing this efficiently have ev