"spending an hour figuring out what arcane incantation I need to pass to np.einsum to get the operation I want"
Yes, I have also had this experience and I hate how in the end, the code is very hard to read, while the for loop was probably trivial.
Yes, I have also had this experience and I hate how in the end, the code is very hard to read, while the for loop was probably trivial.