sort Interface

public interface sort

Contents


Module Procedures

public subroutine dbcsr_1d_i4_sort(arr, n, indices)

Sorts an array inplace using a combination of merge- and bubble-sort. It also returns the indices, which the elements had before the sort.

Arguments

TypeIntentOptionalAttributesName
integer(kind=int_4), intent(inout), dimension(1:n):: arr

the array to sort

integer, intent(in) :: n

length of array

integer, intent(out), dimension(1:n):: indices

returns elements-indices before the sort

public subroutine dbcsr_1d_i8_sort(arr, n, indices)

Sorts an array inplace using a combination of merge- and bubble-sort. It also returns the indices, which the elements had before the sort.

Arguments

TypeIntentOptionalAttributesName
integer(kind=int_8), intent(inout), dimension(1:n):: arr

the array to sort

integer, intent(in) :: n

length of array

integer, intent(out), dimension(1:n):: indices

returns elements-indices before the sort

public subroutine dbcsr_1d_s_sort(arr, n, indices)

Sorts an array inplace using a combination of merge- and bubble-sort. It also returns the indices, which the elements had before the sort.

Arguments

TypeIntentOptionalAttributesName
real(kind=real_4), intent(inout), dimension(1:n):: arr

the array to sort

integer, intent(in) :: n

length of array

integer, intent(out), dimension(1:n):: indices

returns elements-indices before the sort

public subroutine dbcsr_1d_d_sort(arr, n, indices)

Sorts an array inplace using a combination of merge- and bubble-sort. It also returns the indices, which the elements had before the sort.

Arguments

TypeIntentOptionalAttributesName
real(kind=real_8), intent(inout), dimension(1:n):: arr

the array to sort

integer, intent(in) :: n

length of array

integer, intent(out), dimension(1:n):: indices

returns elements-indices before the sort