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
Class. Transformational function.
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
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.