In what order would you like argsort to sort the values -inf, nan, inf?
In numpy 1.0b1 nan is always left where it began:
EXAMPLE 1
>> x
matrix([[ inf],
[ -inf],
[ nan]])
>> x[x.argsort(0),:]
matrix([[ -inf],
[ inf],
[ nan]])
EXAMPLE 2
>> x
matrix([[ nan],
[ inf],
[ -inf]])
>> x[x.argsort(0),:]
matrix([[ nan],
[ -inf],
[ inf]])
I would like nan to be in the middle between -inf and inf.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Numpy-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/numpy-discussion