[NumPy-Tickets] [NumPy] #2063: unique() does not seem to return correct index if array larger than 16

NumPy Trac numpy-tickets@scipy....
Mon Mar 19 09:49:32 CDT 2012


#2063: unique() does not seem to return correct index if array larger than 16
------------------------+---------------------------------------------------
 Reporter:  lolowizard  |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  highest     |   Milestone:  1.7.0   
Component:  numpy.core  |     Version:  1.6.1   
 Keywords:  unique      |  
------------------------+---------------------------------------------------

Comment(by bryan):

 Seems to be a result of argsort not being stable:
 {{{
 In [34]: np.array(v).argsort()
 Out[34]: array([ 0,  1,  2,  3,  4, 10,  9,  8,  6,  5,  7, 15, 11, 12,
 13, 14, 16])

 In [35]: np.array(w).argsort()
 Out[35]: array([ 0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13,
 14])
 }}}

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/2063#comment:2>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list