Re: [Numpy-discussion] Optimizing multi-tensor contractions in numpy

2015-01-03 Thread Daniel Smith
Hello Nathaniel, > I'd also be interested in hearing more about the memory requirements of this > approach. How does the temporary memory required typically scale with the > size of the input arrays? Is there an upper bound on the temporary memory > required? > Currently the algorithm will not

Re: [Numpy-discussion] Optimizing multi-tensor contractions in numpy

2015-01-03 Thread Nathaniel Smith
On 3 Jan 2015 02:46, "Daniel Smith" wrote: > > Hello everyone, > > I have been working on a chunk of code that basically sets out to provide a single function that can take an arbitrary einsum expression and computes it in the most optimal way. While np.einsum can compute arbitrary expressions, th

Re: [Numpy-discussion] Optimizing multi-tensor contractions in numpy

2015-01-02 Thread Charles R Harris
On Fri, Jan 2, 2015 at 7:45 PM, Daniel Smith wrote: > Hello everyone, > > I have been working on a chunk of code that basically sets out to provide > a single function that can take an arbitrary einsum expression and computes > it in the most optimal way. While np.einsum can compute arbitrary > e

[Numpy-discussion] Optimizing multi-tensor contractions in numpy

2015-01-02 Thread Daniel Smith
Hello everyone, I have been working on a chunk of code that basically sets out to provide a single function that can take an arbitrary einsum expression and computes it in the most optimal way. While np.einsum can compute arbitrary expressions, there are two drawbacks to using pure einsum: eins