Maybe permute!(v,p) is what you are looking for: 
http://docs.julialang.org/en/release-0.2/stdlib/base/?highlight=permute!#Base.permute!

Cheers,
Alex.

On Friday, 10 January 2014 17:12:08 UTC+1, andrew cooke wrote:
>
> is there some efficient way of applying a permutation (in-place)?
>
> in other words, i am using sortperm() on one array to find a permutation 
> which i then want to use to in-place sort some data in another array (along 
> a particular dimension).  is there a library function that does this?
>
> thanks,
> andrew
>
>

Reply via email to