Re: [Numpy-discussion] question np.partition

2015-01-30 Thread Jaime Fernández del Río
On Fri, Jan 30, 2015 at 5:58 AM, Julian Taylor < jtaylor.deb...@googlemail.com> wrote: > On 01/30/2015 02:57 AM, Neal Becker wrote: > > It sounds like np.partition could be used to answer the question: > > give me the highest K elements in a vector. > > > > Is this a correct interpretation? Somet

Re: [Numpy-discussion] question np.partition

2015-01-30 Thread Julian Taylor
On 01/30/2015 02:57 AM, Neal Becker wrote: > It sounds like np.partition could be used to answer the question: > give me the highest K elements in a vector. > > Is this a correct interpretation? Something like partial sort, but returned > elements are unsorted. > > I could really make some use

[Numpy-discussion] question np.partition

2015-01-29 Thread Neal Becker
It sounds like np.partition could be used to answer the question: give me the highest K elements in a vector. Is this a correct interpretation? Something like partial sort, but returned elements are unsorted. I could really make some use of this, but in my case it is a list of objects I need t