merge_argsort Interface

public interface merge_argsort

returns the indices that sorts the array


Module Procedures

public subroutine merge_argsort_int(a, idx)

arg sorts integer array A

Arguments

Type IntentOptional Attributes Name
integer, intent(inout) :: a(:)
integer, intent(inout) :: idx(size(a,1))

public subroutine merge_argsort_double(a, idx)

arg sorts integer array A

Arguments

Type IntentOptional Attributes Name
real(kind=long), intent(inout) :: a(:)
integer, intent(inout) :: idx(size(a,1))