News for hackers. Stuff that matters.
Re:Einstein Summation in Numpy by rax on Wednesday January 23, 2019 @07:42AM (#18977675)
This is a reasonable resource, which I have consulted before, but it's from 2016 so the title should be updated.

OptEinsum is also worth checking out if you use Einsum a lot, it has additional features to what is in Numpy.

Re:Einstein Summation in Numpy by ovi256 on Wednesday January 23, 2019 @07:56AM (#18977736)
>it's from 2016 so the title should be updated

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-...

Re:Einstein Summation in Numpy by dgasmith on Wednesday January 23, 2019 @11:33AM (#18979707)
Note that `opt_einsum` is no longer fully merged with NumPy (and likely will not be) as we now support a wider range of inputs, backends (TensorFlow, Dask, etc), and more powerful optimization algorithms for expressions with hundreds of tensors.

Disclaimer: I am the author of the `opt_einsum` package.

Re:Einstein Summation in Numpy by rax on Wednesday January 23, 2019 @08:12AM (#18977798)
I agree about the value of the article. I guess I got tilted as I was hoping for another good, more fresh, post of similar quality!

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.