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 -inf,
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 values I would like to get.
The walkaround I use: get all indeces of nans, replace
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 *
argmax([10,nan,100])
1
argmin([10,nan,100])
1
But it's not the values
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 values I would like
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 *
2011/3/24 Dmitrey tm...@ukr.net:
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