Next:
PARITY_SUFFIX(MASKDIM, SEGMENT, Up: Specifications of Library Previous: PARITY_PREFIX(MASKDIM, SEGMENT,


PARITY_SCATTER(MASK,BASE,INDX1, ..., INDXn)

Description. Scatters elements of MASK to positions of the result indicated by index arrays INDX1, ..., INDXn. An element of the result is true if and only if the number of true values among the corresponding element of BASE and the elements of MASK scattered to that position is odd.
Class. Transformational function.
Arguments.

MASK must be of type logical. It must not be scalar.

BASE must be of type logical with the same kind type parameter as MASK. 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 PARITY( (//) ), where () are the elements of MASK associated with as described in Section .
. PARITY_SCATTER((/ T,T,T,T /), (/ T,F,F /), (/ 1,1,1,2 /)) is ,F, T, F,, plus 1filll -1;F, T, F,; plus 1filll -1:F, T, F,: plus 1filll -1.F, T, F,. plus 1filll -1F, T, F, plus 1filll-1.

paula@erc.msstate.edu
Thu Jul 21 17:05:43 CDT 1994