** Next:** COUNT_SUFFIX(MASKDIM, SEGMENT,
**Up:** Specifications of Library
** Previous:** COUNT_PREFIX(MASKDIM, SEGMENT,

Description. Scatters elements of `MASK` to positions of the
result indicated by index arrays `INDX1`, ..., `INDXn`.
Each element of the result is the sum of the corresponding element of
`BASE` and the number of true elements of `MASK` scattered to
that position.

Class. Transformational
function.

Arguments.

MASK 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
`MASK`. The number of `INDX`
arguments must be equal to the rank of
`BASE`.

Result Type, Type Parameter, and Shape. Same as `BASE`.

Result Value.
The element of the result corresponding to the element of `BASE` has the value ` + COUNT( (//) )`,
where () are the elements of `MASK` associated
with as described in Section .

. `COUNT_SCATTER((/T, T, T, F/),(/1, -1, 0/),(/1, 1, 2,
2/))` is `,3, 0, 0,, plus 1filll
-1;3, 0, 0,; plus 1filll
-1:3, 0, 0,: plus 1filll
-1.3, 0, 0,. plus 1filll
-13, 0, 0, plus 1filll-1.`

Thu Jul 21 17:05:43 CDT 1994