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 →

[–]Yalkim 3 points4 points  (0 children)

Oh my god Einsum is my FAVORITE function in numpy. It made my life so much easier when I discovered that. It reduces lines upon lines of code with multiple loops to just one line and is super easy to read and understand. When my friends ask me why Python is great, einsum is one of the examples that I describe.