*julia> **x = randn(5); p = sortperm(x)*
*5-element Array{Int64,1}:** 3* * 1* * 5* * 4* * 2* *julia> **x[p][invperm(p)] == x* *true* Med venlig hilsen Andreas Noack 2014-10-15 9:16 GMT-04:00 paul analyst <[email protected]>: > x = rand (5) > y = rand (5) > p = sortperm (x) > > y1 = y [p] > > > How to get back from y1 to order as in y ? > Paul >
