[Jprogramming] inverse permutation vector

bill lam bbill.lam at gmail.com
Sun Sep 9 00:29:51 HKT 2007


Hello, I want to find the inverse permutation vector, eg
    ]pv=. /:a=. 10 13 14 10 15 12
0 3 5 1 2 4
    pv{a
10 10 12 13 14 15

how to get ipv from pv such that
    ipv{pv{a   give back   a

TIA

-- 
regards,
bill


More information about the Programming mailing list