[Numpy-discussion] 17ᵗʰ Advanced Scientific Programming in Python in Plovdiv, Bulgaria, 21–28 September, 2025

2025-03-24 Thread Tiziano Zito via NumPy-Discussion
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

[Numpy-discussion] Re: array.T.max() vs array.max(axis=0) performance difference

2025-03-21 Thread Tiziano Zito via NumPy-Discussion
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))