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