sort_index Module Subroutine

public pure module subroutine sort_index(vals, idx)

Sort the array vals and return the permutation indices

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: vals(:)
integer, intent(out) :: idx(:)