public interface radix_sort
The generic subroutine interface implementing the LSD radix sort algorithm,
see https://en.wikipedia.org/wiki/Radix_sort for more details.
It is always O(N) in sorting random data, but need a O(N) buffer.
(Specification)
Subroutines
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
real(kind=dp),
|
intent(inout), |
|
dimension(:), target
|
:: |
array |
|
real(kind=dp),
|
intent(inout), |
optional, |
dimension(:), target
|
:: |
work |
|
logical,
|
intent(in), |
optional |
|
:: |
reverse |
|
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
integer(kind=int16),
|
intent(inout), |
|
dimension(:)
|
:: |
array |
|
integer(kind=int16),
|
intent(inout), |
optional, |
dimension(:), target
|
:: |
work |
|
logical,
|
intent(in), |
optional |
|
:: |
reverse |
|
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
integer(kind=int32),
|
intent(inout), |
|
dimension(:)
|
:: |
array |
|
integer(kind=int32),
|
intent(inout), |
optional, |
dimension(:), target
|
:: |
work |
|
logical,
|
intent(in), |
optional |
|
:: |
reverse |
|
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
integer(kind=int64),
|
intent(inout), |
|
dimension(:)
|
:: |
array |
|
integer(kind=int64),
|
intent(inout), |
optional, |
dimension(:), target
|
:: |
work |
|
logical,
|
intent(in), |
optional |
|
:: |
reverse |
|
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
integer(kind=int8),
|
intent(inout), |
|
dimension(:)
|
:: |
array |
|
logical,
|
intent(in), |
optional |
|
:: |
reverse |
|
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
real(kind=sp),
|
intent(inout), |
|
dimension(:), target
|
:: |
array |
|
real(kind=sp),
|
intent(inout), |
optional, |
dimension(:), target
|
:: |
work |
|
logical,
|
intent(in), |
optional |
|
:: |
reverse |
|