Skip to main content

InsertionSort

Insertion sort (in-place) algorithm.

Reference: coretran

Calling example:

CALL InsertionSort(array, low, high)

Interface

MODULE PURE SUBROUTINE InsertionSort(array, low, high)
INTEGER(Int8| Int16 | Int32 | Int64) | REAL(Real32| Real64), INTENT(INOUT) :: array(:)
INTEGER(I4B), INTENT(IN) :: low
INTEGER(I4B), INTENT(IN) :: high
END SUBROUTINE InsertionSort