NAME
     COUNT_SCATTER

SYNOPSIS
     USE HPF_LIBRARY

     COUNT_SCATTER(ARRAY, BASE, INDX1, ..., INDXn)

DESCRIPTION
     COUNT_SCATTER scatters elements of ARRAY to positions of the
     result  indicated  by  the  index arrays INDX1, ...INDXn. An
     element of the result is the sum of the  corresponding  ele-
     ment  of  BASE and the number of true elements of MASK scat-
     tered to that position.

ARGUMENTS
     ARRAY
          must be of type logical. It must not be scalar.

     BASE must be of type integer. It must not be scalar.

     INDX1...INDXn
          must be of type integer and conformable with ARRAY.

RESULT TYPE
     Same type and shape as BASE.

SEE ALSO
     COUNT_PREFIX.