NumPy’s einsum
1 min readMay 27, 2020
The einsum function is a highly memory efficient function, it outperforms familiar numpy array functions, however on the flipside, it can take a little while to understand the notation.
There is also a traditional numpy’s equivalent function to do the same operation as einsum() does.