OptEinsum is also worth checking out if you use Einsum a lot, it has additional features to what is in Numpy.
OptEinsum is also worth checking out if you use Einsum a lot, it has additional features to what is in Numpy.
I will try to update the title. There are no changes since then that diminish this document's value - the einsum notation is still the same. The biggest change since then is that the numpy.einsum implementation has been tremendously optimized and has become the benchmark in capabilities that other libraries follow.
Edit: Opt_Einsum is amazing and was a big part of the optimization efforts - it has been merged fully into numpy since v1.12. See https://github.com/dgasmith/opt_einsum#news-opt_einsum-will-...
Using the Optimize kewarg is a must for any summation involving a few inputs, which is why I brought it up. It is one of the things which is not discussed in a post from 2016.
Disclaimer: I am the author of the `opt_einsum` package.