FORCES
FORtran lib for Comp. Env. Sys.
|
Insertion sort ranking. More...
Public Member Functions | |
subroutine | d_inssor (xdont) |
subroutine | r_inssor (xdont) |
subroutine | i_inssor (xdont) |
subroutine | c_inssor (xdont) |
Insertion sort ranking.
Sorts XVALT into increasing order (Insertion sort) This subroutine uses insertion sort. It does not use any work array and is faster when XVALT is of very small size (< 20), or already almost sorted, but worst case behavior (intially inverse sorted) can easily happen. In most cases, the quicksort or merge sort method is faster.
[in,out] | integer(i4)/real(sp,dp), dimension(:) :: XVALT | Array to be ranked. |
Definition at line 445 of file mo_orderpack.f90.
subroutine mo_orderpack::inssor::c_inssor | ( | character(*), dimension (:), intent(inout) | xdont | ) |
Definition at line 4068 of file mo_orderpack.f90.
subroutine mo_orderpack::inssor::d_inssor | ( | real(kind = dp), dimension (:), intent(inout) | xdont | ) |
Definition at line 3876 of file mo_orderpack.f90.
subroutine mo_orderpack::inssor::i_inssor | ( | integer(kind = i4), dimension (:), intent(inout) | xdont | ) |
Definition at line 4004 of file mo_orderpack.f90.
subroutine mo_orderpack::inssor::r_inssor | ( | real(kind = sp), dimension (:), intent(inout) | xdont | ) |
Definition at line 3940 of file mo_orderpack.f90.