Octopus
sort_oct_m::sort Interface Reference

This is the common interface to a sorting routine. It performs the shell algorithm, not as fast as the quicksort for large numbers, but it seems that better for moderate numbers (around 100). Their possible interfaces are: subroutine sort(a [, ind]) real(real64),_OR_INTEGER, intent(inout) :: a(:) integer, intent(inout), optional :: ind(:) ! This routine sorts, from smallest to largest, the array a. ! If the integer array ind is present, it puts in it the indexing ! of the sorting, so that other arrays can be sorted according to ! the sorting of a. end subroutine sort. More...

Detailed Description

This is the common interface to a sorting routine. It performs the shell algorithm, not as fast as the quicksort for large numbers, but it seems that better for moderate numbers (around 100). Their possible interfaces are: subroutine sort(a [, ind]) real(real64),_OR_INTEGER, intent(inout) :: a(:) integer, intent(inout), optional :: ind(:) ! This routine sorts, from smallest to largest, the array a. ! If the integer array ind is present, it puts in it the indexing ! of the sorting, so that other arrays can be sorted according to ! the sorting of a. end subroutine sort.

subroutine sort(a, x) real(real64), intent(inout) :: a(:) real(real64),_OR_COMPLEX, intent(inout) :: x(:, : [, :]) ! This routine sorts, from smallest to largest, the array a. ! The real or complex array x, which may be two or three dimensional, ! is sorted according to the ordering of a. The last dimension of x ! must have the same size as a. end subroutine sort

Definition at line 149 of file sort.F90.

Private Member Functions

subroutine dsort (a, ind)
 
subroutine isort (a, ind)
 Shell sort for integer arrays. More...
 
subroutine lsort (a, ind)
 Shell sort for integer(int64) arrays. More...
 
subroutine dshellsort1 (a, x)
 
subroutine zshellsort1 (a, x)
 
subroutine ishellsort1 (a, x)
 
subroutine dshellsort2 (a, x)
 
subroutine zshellsort2 (a, x)
 
subroutine ishellsort2 (a, x)
 

Member Function/Subroutine Documentation

◆ dsort()

subroutine sort_oct_m::sort::dsort ( real(real64), dimension(:), intent(inout)  a,
integer, dimension(:), intent(out), optional  ind 
)
private

Definition at line 204 of file sort.F90.

◆ isort()

subroutine sort_oct_m::sort::isort ( integer, dimension(:), intent(inout)  a,
integer, dimension(:), intent(out), optional  ind 
)
private

Shell sort for integer arrays.

Definition at line 226 of file sort.F90.

◆ lsort()

subroutine sort_oct_m::sort::lsort ( integer(int64), dimension(:), intent(inout)  a,
integer, dimension(:), intent(out), optional  ind 
)
private

Shell sort for integer(int64) arrays.

Definition at line 247 of file sort.F90.

◆ dshellsort1()

subroutine sort_oct_m::sort::dshellsort1 ( real(real64), dimension(:), intent(inout)  a,
real(real64), dimension(:, :), intent(inout)  x 
)
private

Definition at line 501 of file sort.F90.

◆ zshellsort1()

subroutine sort_oct_m::sort::zshellsort1 ( real(real64), dimension(:), intent(inout)  a,
complex(real64), dimension(:, :), intent(inout)  x 
)
private

Definition at line 335 of file sort.F90.

◆ ishellsort1()

subroutine sort_oct_m::sort::ishellsort1 ( real(real64), dimension(:), intent(inout)  a,
integer, dimension(:, :), intent(inout)  x 
)
private

Definition at line 667 of file sort.F90.

◆ dshellsort2()

subroutine sort_oct_m::sort::dshellsort2 ( real(real64), dimension(:), intent(inout)  a,
real(real64), dimension(:, :, :), intent(inout)  x 
)
private

Definition at line 547 of file sort.F90.

◆ zshellsort2()

subroutine sort_oct_m::sort::zshellsort2 ( real(real64), dimension(:), intent(inout)  a,
complex(real64), dimension(:, :, :), intent(inout)  x 
)
private

Definition at line 381 of file sort.F90.

◆ ishellsort2()

subroutine sort_oct_m::sort::ishellsort2 ( real(real64), dimension(:), intent(inout)  a,
integer, dimension(:, :, :), intent(inout)  x 
)
private

Definition at line 713 of file sort.F90.


The documentation for this interface was generated from the following file: