Okay, thanks for the info. I will file an issue. I did implement a work around this way (another column attached to the matrix). You can
Petr On Thursday, December 4, 2014 8:59:20 PM UTC-8, Viral Shah wrote: > > I suspect this hasn't been implemented yet. Could you file an issue? > > Until this gets done, you can probably get the permutation by > concatenating a new column at the end, which is [1:m]. Then do sortrows on > this, and the last column should be the permutation vector. > > -viral > > On Friday, December 5, 2014 8:01:17 AM UTC+5:30, Petr Krysl wrote: >> >> Can I get the index vector from this function? This is what the Matlab >> version does: it returns the sorted matrix and the permutation vector. >> >> There doesn't seem to be a facility for this in Julia, unless I missed it >> (possible). >> >> Does anyone have a code that would do this? >> >> By the way, I ran into this issue also with unique(): the Matlab version >> of this function returns two permutation vectors. In general I think it >> would be desirable to have implementations of these functions that match >> Matlab's. >> >> Thanks, >> >> Petr >> >
