Discussion about this post

User's avatar
Dylan Black's avatar

Oh man do i support this. Thank you from every person who learned math with index notation before learning to code and then had to unlearn index notation.

I love index notation. By the way, have you ever used the np.einsum functionality? I found that much, much easier to understand.

Expand full comment
Stuart Cameron's avatar

But... does numpy parallelize? I had always understood that it just does loops 'under the hood', which are faster because they are written more optimally, in C. For example, the docs about broadcasting say: "Broadcasting provides a means of vectorizing array operations so that looping occurs in C instead of Python." https://numpy.org/doc/stable/user/basics.broadcasting.html

I can't find any clear documentation of the extent to which it uses the GPU or parallelizes vector operations. In 2020, a top user demand was to improve performance, and many of the comments request access to the GPU to parallelise. https://numpy.org/user-survey-2020-details/content/2021/priorities.html.

Am I missing something?

Expand full comment
34 more comments...

No posts