Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | int_size | = | 8 | |
integer, | public, | parameter | :: | max_merge_stack | = | int(ceiling(log(real(2., kind=dp)**64)/log(real(1.6180339887, kind=dp)))) |
Used to pass state around in a stack among helper functions for the
ORD_SORT
and SORT_INDEX
algorithms
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer(kind=int_size), | public | :: | base | = | 0 | ||
integer(kind=int_size), | public | :: | len | = | 0 |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in), | optional | :: | x | ||
logical, | intent(in) | :: | default |
Returns the minimum length of a run from 32-63 so that N/MIN_RUN is less than or equal to a power of two. See https://svn.python.org/projects/python/trunk/Objects/listsort.txt
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_size), | intent(in) | :: | n |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | n | |||
integer, | intent(inout) | :: | arr(n) | |||
integer, | intent(inout) | :: | brr(n) |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(inout) | :: | array(0:) | |||
integer(kind=int_size), | intent(out) | :: | index(0:) | |||
integer, | intent(out), | optional | :: | work(0:) | ||
integer(kind=int_size), | intent(out), | optional | :: | iwork(0:) | ||
logical, | intent(in), | optional | :: | reverse |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(inout) | :: | array(0:) | |||
integer(kind=int_size), | intent(inout) | :: | index(0:) |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(inout) | :: | array(0:) | |||
integer(kind=int_size), | intent(inout) | :: | index(0:) |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(inout) | :: | array(0:) | |||
integer(kind=int_size), | intent(inout) | :: | index(0:) | |||
integer, | intent(inout) | :: | buf(0:) | |||
integer(kind=int_size), | intent(inout) | :: | ibuf(0:) |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(inout) | :: | array(0:) | |||
integer(kind=int_size), | intent(in) | :: | mid | |||
integer, | intent(inout) | :: | buf(0:) | |||
integer(kind=int_size), | intent(inout) | :: | index(0:) | |||
integer(kind=int_size), | intent(inout) | :: | ibuf(0:) |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(inout) | :: | array(0:) | |||
integer(kind=int_size), | intent(inout) | :: | index(0:) |