Next:
IPARITY_SUFFIX(ARRAYDIM, MASK, Up: Specifications of Library Previous: IPARITY_PREFIX(ARRAYDIM, MASK,

IPARITY_SCATTER(ARRAY,BASE,INDX1, ..., INDXn, MASK)

Optional Argument. MASK
Description. Scatters elements of ARRAY selected by MASK to positions of the result indicated by index arrays INDX1, ..., INDXn. The j bit of an element of the result is 1 if and only if there are an odd number of ones among the j bits of the corresponding element of BASE and the elements of ARRAY scattered to that position.
Class. Transformational function.
Arguments.

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

BASE must be of type integer with the same kind type parameter as ARRAY. It must not be scalar.

INDX1,...,INDXn must be of type integer and conformable with ARRAY. The number of INDX arguments must be equal to the rank of BASE.

MASK (optional) must be of type logical and must be conformable with ARRAY.
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 IPARITY( (//) ), where () are the elements of ARRAY associated with as described in Section .
. IPARITY_SCATTER((/1,2,3,6/), (/1,3,7/), (/1,1,2,2/)) is ,2, 6, 7,, plus 1filll -1;2, 6, 7,; plus 1filll -1:2, 6, 7,: plus 1filll -1.2, 6, 7,. plus 1filll -12, 6, 7, plus 1filll-1.


paula@erc.msstate.edu
Thu Dec 8 16:17:11 CST 1994