Re: [Numpy-discussion] No Copy Reduce Operations

2008-07-29 Thread Luis Pedro Coelho
Travis E. Oliphant wrote: > Your approach using C++ templates is interesting, and I'm very glad for > your explanation and your releasing of the code as open source.I'm > not prepared to start using C++ in NumPy, however, so your code will > have to serve as an example only. I will keep th

Re: [Numpy-discussion] No Copy Reduce Operations

2008-07-28 Thread Bruce Southey
Luis Pedro Coelho wrote: > Hello all, > > Numpy arrays come with several reduce operations: sum(), std(), argmin(), > min(), > > The traditional implementation of these suffers from two big problems: It is > slow and it often allocates intermediate memory. I have code that is failing > with

Re: [Numpy-discussion] No Copy Reduce Operations

2008-07-27 Thread Travis E. Oliphant
Luis Pedro Coelho wrote: > Hello all, > > Numpy arrays come with several reduce operations: sum(), std(), argmin(), > min(), > > The traditional implementation of these suffers from two big problems: It is > slow and it often allocates intermediate memory. I have code that is failing > with

[Numpy-discussion] No Copy Reduce Operations

2008-07-26 Thread Luis Pedro Coelho
Hello all, Numpy arrays come with several reduce operations: sum(), std(), argmin(), min(), The traditional implementation of these suffers from two big problems: It is slow and it often allocates intermediate memory. I have code that is failing with OOM (out of memory) exceptions in call