[Numpy-discussion] k maximal elements

2011-06-05 Thread Alex Ter-Sarkissov
I have a vector of positive integers length n. Is there a simple (i.e. without sorting/ranking) of 'pulling out' k larrgest (or smallest) values. Something like *sum(x[sum(x,1)>(max(sum(x,1)+min(sum(x,1/2,])* but smarter ___ NumPy-Discussion mailing

Re: [Numpy-discussion] tighten up ufunc casting rule

2011-06-05 Thread josef . pktd
On Sun, Jun 5, 2011 at 6:51 PM, Gael Varoquaux wrote: > On Sun, Jun 05, 2011 at 04:41:26PM -0600, Charles R Harris wrote: >>      Now, with regards to the actual failures induced by the new >>      branch, it took me a while to understand why they where happening, >>      and now I realise that we

Re: [Numpy-discussion] tighten up ufunc casting rule

2011-06-05 Thread Gael Varoquaux
On Sun, Jun 05, 2011 at 04:41:26PM -0600, Charles R Harris wrote: > Now, with regards to the actual failures induced by the new > branch, it took me a while to understand why they where happening, > and now I realise that we probably should have explicit coercions > at these loc

Re: [Numpy-discussion] tighten up ufunc casting rule

2011-06-05 Thread Charles R Harris
On Sun, Jun 5, 2011 at 3:15 PM, Gael Varoquaux < gael.varoqu...@normalesup.org> wrote: > On Sun, Jun 05, 2011 at 10:43:45PM +0200, Ralf Gommers wrote: > >four in scikit-learn (plus two that don't > >look related), > > Yeah, some of these failures are due to numerical unstabilities in tests

Re: [Numpy-discussion] need help building a numpy extension that uses fftpack on windows

2011-06-05 Thread martin smith
On 6/3/2011 5:15 AM, Ralf Gommers wrote: > > > On Thu, Jun 2, 2011 at 9:33 PM, Robert Kern > wrote: > > On Thu, Jun 2, 2011 at 14:07, Ralf Gommers > mailto:ralf.gomm...@googlemail.com>> > wrote: > > > > On Wed, Jun 1, 2011 at 5:45 PM, martin smi

Re: [Numpy-discussion] tighten up ufunc casting rule

2011-06-05 Thread Gael Varoquaux
On Sun, Jun 05, 2011 at 10:43:45PM +0200, Ralf Gommers wrote: >four in scikit-learn (plus two that don't >look related), Yeah, some of these failures are due to numerical unstabilities in tests (nasty ones, still fighting) and some simply to crappy code (HMMs are hopeless :( ). Now, with

Re: [Numpy-discussion] tighten up ufunc casting rule

2011-06-05 Thread Ralf Gommers
On Thu, Jun 2, 2011 at 10:12 PM, Mark Wiebe wrote: > On Thu, Jun 2, 2011 at 3:09 PM, Gael Varoquaux < > gael.varoqu...@normalesup.org> wrote: > >> On Thu, Jun 02, 2011 at 03:06:58PM -0500, Mark Wiebe wrote: >> >Would anyone object to, at least temporarily, tightening up the >> default >> >