I have an array of distances a = np.array([20.5 ,5.3 ,60.7 ,3.0 ], 'double')
and I need the indices of the sorted array (for example [3, 1, 0, 2]
, for a.sort()
). Is there a function in Numpy to do that?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…