![]() |
Octopus
|
This module is intended to contain "only mathematical" functions and procedures. More...
This module is intended to contain "only mathematical" functions and procedures.
Data Types | |
| interface | dsort1 |
| from sort_low.cc More... | |
| interface | dsort2 |
| interface | isort1 |
| interface | isort2 |
| interface | lsort1 |
| interface | lsort2 |
| interface | sort |
| 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... | |
Functions/Subroutines | |
| 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... | |
| pure logical function | less_idx (i, j, off, kabs, ksgn) |
| Sorting criterium for the robust sorting below. More... | |
| recursive subroutine | mergesort_perm (perm, tmp, l, r, off, kabs, ksgn) |
| Perform the permutations for the sorting. More... | |
| subroutine, public | robust_sort_by_abs (v, off, perm, negative_first) |
| Robbust sorting of floating point numbers by absolute values. More... | |
| subroutine | zshellsort1 (a, x) |
| subroutine | zshellsort2 (a, x) |
| subroutine | dshellsort1 (a, x) |
| subroutine | dshellsort2 (a, x) |
| subroutine | ishellsort1 (a, x) |
| subroutine | ishellsort2 (a, x) |
|
private |
|
private |
|
private |
|
private |
|
private |
| subroutine, public sort_oct_m::robust_sort_by_abs | ( | real(real64), dimension(:), intent(in) | v, |
| integer, dimension(:, :), intent(in) | off, | ||
| integer, dimension(size(v)), intent(out) | perm, | ||
| logical, intent(in), optional | negative_first | ||
| ) |
|
private |
|
private |
|
private |
|
private |
|
private |