next up previous index
Next: M104 Sort One-Dimensional Up: CERNLIB Previous: M101 Sort One-Dimensional

M103 Sort One-Dimensional Array into Itself

Routine ID: M103
Author(s): H. von EickenLibrary: KERNLIB
Submitter: Submitted: 15.09.1978
Language: FortranRevised:

The FLPSOR package contains two entry points for sorting a one-dimensional array, containing either floating point number or integers, into itself. The sort is done in ascending order.

Structure:

SUBROUTINE subprogram
User Entry Names: FLPSOR, INTSOR

Usage:

    CALL FLPSOR(A,N)
sorts the first N elements of the REAL array A in ascending order into itself.
    CALL INTSOR(IA,N)
sorts the first N elements of the INTEGER array IA in ascending order into itself.

For more details, see Long Write-up for SORTZV (M101).

Based on an Algol procedure described in Ref. 1.

References:

  1. R.S. Scowen, Algorithm 271 QUICKERSORT, Collected Algorithms from CACM (1965).

M104


Janne Saarela
Mon Apr 3 15:06:23 METDST 1995