Skip to content

Get the permutation vector from sortrows and sortcols #9258

@ViralBShah

Description

@ViralBShah

Getting the permutation vector from sortrows and sortcols is often required, but we don't have a way to do it. For now, one can concatenate [1:n] to the end of the array and calling sortrows, which will become the permutation vector when sortrows completes.

Discussion here:
https://groups.google.com/forum/?hl=en#!topic/julia-users/zgWwkgcHpFY

cc: @kmsquire

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueIndicates a good issue for first-time contributors to Julia

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions