@@ -435,40 +435,24 @@ module stdlib_sorting
435
435
!! with a value of `.TRUE.` the indices correspond to a non-increasing sort.
436
436
437
437
#:for k1 in INT_KINDS
438
+ #:for k1, t1 in IR_KINDS_TYPES
438
439
module subroutine ${k1}$_sort_index( array, index, work, iwork, &
439
440
reverse )
440
441
!! Version: experimental
441
442
!!
442
- !! `${k1}$_sort_index( array )` sorts an input `ARRAY` of type `INTEGER(${k1}$) `
443
+ !! `${k1}$_sort_index( array )` sorts an input `ARRAY` of type `${t1}$ `
443
444
!! using a hybrid sort based on the `'Rust" sort` algorithm found in `slice.rs`
444
445
!! and returns the sorted `ARRAY` and an array `INDEX of indices in the
445
446
!! order that would sort the input `ARRAY` in the desired direction.
446
- integer(${k1}$) , intent(inout) :: array(0:)
447
+ ${t1}$ , intent(inout) :: array(0:)
447
448
integer(int_size), intent(inout) :: index(0:)
448
- integer(${k1}$) , intent(inout), optional :: work(0:)
449
+ ${t1}$ , intent(inout), optional :: work(0:)
449
450
integer(int_size), intent(inout), optional :: iwork(0:)
450
451
logical, intent(in), optional :: reverse
451
452
end subroutine ${k1}$_sort_index
452
453
453
454
#:endfor
454
455
455
- #:for k1 in REAL_KINDS
456
- module subroutine ${k1}$_sort_index( array, index, work, iwork, &
457
- reverse )
458
- !! Version: experimental
459
- !!
460
- !! `${k1}$_sort_index( array )` sorts an input `ARRAY` of type `REAL(${k1}$)`
461
- !! using a hybrid sort based on the `'Rust" sort` algorithm found in `slice.rs`
462
- !! and returns the sorted `ARRAY` and an array `INDEX of indices in the
463
- !! order that would sort the input `ARRAY` in the desired direction.
464
- real(${k1}$), intent(inout) :: array(0:)
465
- integer(int_size), intent(inout) :: index(0:)
466
- real(${k1}$), intent(inout), optional :: work(0:)
467
- integer(int_size), intent(inout), optional :: iwork(0:)
468
- logical, intent(in), optional :: reverse
469
- end subroutine ${k1}$_sort_index
470
-
471
- #:endfor
472
456
module subroutine char_sort_index( array, index, work, iwork, &
473
457
reverse )
474
458
!! Version: experimental
0 commit comments