Sorts an array inplace using a combination of merge- and bubble-sort. It also returns the indices, which the elements had before the sort.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
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 |
Sorts an array inplace using a combination of merge- and bubble-sort. It also returns the indices, which the elements had before the sort.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
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 |
Sorts an array inplace using a combination of merge- and bubble-sort. It also returns the indices, which the elements had before the sort.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
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 |
Sorts an array inplace using a combination of merge- and bubble-sort. It also returns the indices, which the elements had before the sort.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
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 |