by gh02t · 8y ago · 0 comments
Edit: More speed on the Python side is good though, because it gives you flexibility. Sometimes it's hard to figure out how to do stuff optimally in NumPy, versus just banging things out in a for loop. I've definitely done that when I wanted something to just work, versus 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.