Re: [Numpy-discussion] argmin and argmax without nan

2011-03-24 Thread Robert Kern
2011/3/24 Dmitrey : > Are there any plans for mergingĀ bottleneck into numpy? No plans, but no particular opposition. bottleneck is a good place to experiment with these optimizations. When they settle, it might be worth folding them back in. > Also, are those benchmarks valid for ordinary numpy

Re: [Numpy-discussion] argmin and argmax without nan

2011-03-24 Thread Dmitrey
On Thu, Mar 24, 2011 at 6:19 AM, Ralf Gommers < ralf.gomm...@googlemail.com > wrote: > 2011/3/24 Dmitrey < tm...@ukr.net >: >> hi, >> is there any way to get argmin and argmax of an array w/o nans? >> Currently I have > from numpy import

Re: [Numpy-discussion] argmin and argmax without nan

2011-03-24 Thread Dmitrey
2011/3/24 Dmitrey < tm...@ukr.net >: > hi, > is there any way to get argmin and argmax of an array w/o nans? > Currently I have from numpy import * argmax([10,nan,100]) > 1 argmin([10,nan,100]) > 1 > But it's not the va

Re: [Numpy-discussion] argmin and argmax without nan

2011-03-24 Thread Keith Goodman
On Thu, Mar 24, 2011 at 6:19 AM, Ralf Gommers wrote: > 2011/3/24 Dmitrey : >> hi, >> is there any way to get argmin and argmax of an array w/o nans? >> Currently I have > from numpy import * > argmax([10,nan,100]) >> 1 > argmin([10,nan,100]) >> 1 >> But it's not the values I would like

Re: [Numpy-discussion] argmin and argmax without nan

2011-03-24 Thread Ralf Gommers
2011/3/24 Dmitrey : > hi, > is there any way to get argmin and argmax of an array w/o nans? > Currently I have from numpy import * argmax([10,nan,100]) > 1 argmin([10,nan,100]) > 1 > But it's not the values I would like to get. > > The walkaround I use: get all indeces of nans, repla

[Numpy-discussion] argmin and argmax without nan

2011-03-24 Thread Dmitrey
hi, is there any way to get argmin and argmax of an array w/o nans? Currently I have >>> from numpy import * >>> argmax([10,nan,100]) 1 >>> argmin([10,nan,100]) 1 But it's not the values I would like to get. The walkaround I use: get all indeces of nans, replace them by

Re: [Numpy-discussion] argmin and argmax

2009-07-11 Thread Keith Goodman
On Sat, Jul 11, 2009 at 7:09 AM, Keith Goodman wrote: > On Sat, Jul 11, 2009 at 3:20 AM, f0X_in_s0X wrote: >> >> Do argmin and argmax skip nan values? I cant find it anywhere in the numpy >> documentation. >> >> In any case, if I want to find max and min values in an array that may >> contain nan v

Re: [Numpy-discussion] argmin and argmax

2009-07-11 Thread Keith Goodman
On Sat, Jul 11, 2009 at 3:20 AM, f0X_in_s0X wrote: > > Do argmin and argmax skip nan values? I cant find it anywhere in the numpy > documentation. > > In any case, if I want to find max and min values in an array that may > contain nan values also, what would the be the most efficient way to do > t

[Numpy-discussion] argmin and argmax

2009-07-11 Thread f0X_in_s0X
Do argmin and argmax skip nan values? I cant find it anywhere in the numpy documentation. In any case, if I want to find max and min values in an array that may contain nan values also, what would the be the most efficient way to do that? Any pointers?? -- View this message in context: http://