Contains Hoare's style partitioning algorithms used for quicksorting routines n=(right+left)/2 call swap(idx(left),idx(n))
Partitioning used for quicksort routines
Interfaced with partition()
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=r64), | intent(inout) | :: | this(:) | 1D array | ||
| integer(kind=i32), | intent(inout) | :: | left | Left index | ||
| integer(kind=i32), | intent(inout) | :: | right | Right index | ||
| integer(kind=i32), | intent(inout) | :: | iPivot1 | Pivoting index | ||
| integer(kind=i32), | intent(inout) | :: | iPivot2 | Pivoting index | 
Interfaced with partition()
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=r64), | intent(inout) | :: | this(:) | 1D array | ||
| integer(kind=i32), | intent(inout) | :: | left | Left index | ||
| integer(kind=i32), | intent(inout) | :: | right | Right index | ||
| integer(kind=i32), | intent(inout) | :: | iPivot1 | Pivoting index | ||
| integer(kind=i32), | intent(inout) | :: | iPivot2 | Pivoting index |