![]() |
(git:b77b4be)
|
Routine for sorting an array. More...
Functions/Subroutines | |
subroutine, public | cp_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. | |
subroutine, public | cp_1d_r_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. | |
subroutine, public | cp_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. | |
subroutine, public | cp_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. | |
Routine for sorting an array.
DBCSR: Please use the interface defined in dbcsr_toollib.F for calling sort().
subroutine, public cp_array_sort::cp_1d_s_sort | ( | real(kind=sp), dimension(1:n), intent(inout) | arr, |
integer, intent(in) | n, | ||
integer, dimension(1:n), intent(inout) | 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.
arr | the array to sort |
n | length of array |
indices | returns elements-indices before the sort |
Definition at line 45 of file cp_array_sort.F.
subroutine, public cp_array_sort::cp_1d_r_sort | ( | real(kind=dp), dimension(1:n), intent(inout) | arr, |
integer, intent(in) | n, | ||
integer, dimension(1:n), intent(inout) | 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.
arr | the array to sort |
n | length of array |
indices | returns elements-indices before the sort |
Definition at line 173 of file cp_array_sort.F.
subroutine, public cp_array_sort::cp_1d_i4_sort | ( | integer(kind=int_4), dimension(1:n), intent(inout) | arr, |
integer, intent(in) | n, | ||
integer, dimension(1:n), intent(inout) | 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.
arr | the array to sort |
n | length of array |
indices | returns elements-indices before the sort |
Definition at line 301 of file cp_array_sort.F.
subroutine, public cp_array_sort::cp_1d_i8_sort | ( | integer(kind=int_8), dimension(1:n), intent(inout) | arr, |
integer, intent(in) | n, | ||
integer, dimension(1:n), intent(inout) | 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.
arr | the array to sort |
n | length of array |
indices | returns elements-indices before the sort |
Definition at line 429 of file cp_array_sort.F.