so possort([100,50,200,5,150])
would return
[2,1,4,0,3]
I know argsort would give:
[3,1,0,4,2]
and then I could just do
for i,j in enumerate(a):
x[j]=i
but that seems clumsy and slow
so possort([100,50,200,5,150])
would return
[2,1,4,0,3]
I know argsort would give:
[3,1,0,4,2]
and then I could just do
for i,j in enumerate(a):
x[j]=i
but that seems clumsy and slow