CXML

ISORTD (3sciport)


SYNOPSIS

  Call ISORTD( ad, n, l, h, x, incx, id, incd, count )

ARGUMENTS

  ad              Character.
                  Indicates whether to sort in ascending or descending order.
                  Any character string starting with 'a', 'A', 'd', or 'D' is
                  valid. Strings starting with 'a' or 'A' request ascending
                  order. Strings starting with 'd' or 'D' request descending
                  order.

  n               Integer.
                  The number of elements to be sorted.

  l               Integer.
                  A vestigial argument not used by this routine.

  h               Integer.
                  A vestigial argument not used by this routine.

  x               Integer vector.
                  The integer data to be sorted.

  incx            Integer.
                  The increment between elements of x.

  id              Integer vector.
                  A vector of indices of vector x. It is can be used to
                  access vector x in sorted order.

  incd            Integer.
                  The increment between elements of vector id.

  count           Integer.
                  A vestigial argument not used by this routine.

DESCRIPTION

  ISORTD performs an indexed sort in ascending or descending order. A
  permuted index vector is returned in id, which can be used to access the
  unmodified data vector x in its sorted order.

  For equations and other information, see Volume 3: UNICOS Math and
  Scientific Library Reference Manual SR-2081 7.0, Cray Research, Inc.

CXML Home Page

Index of CXML Routines