next up previous contents
Next: PARITY_SCATTER(MASKBASE,INDX1, ..., INDXn) Up: Specifications of Library Procedures Previous: PARITY_PREFIX(MASKDIM, SEGMENT, EXCLUSIVE)

PARITY_PREFIX(MASK, DIM, SEGMENT, EXCLUSIVE)

Optional Arguments. DIM, SEGMENT, EXCLUSIVE

Description. Computes a segmented logical exclusive OR scan along dimension DIM of MASK.

Class. Transformational function.

Arguments.

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

DIM (optional) must be scalar and of type integer with a value in the range 1 < DIM < n, where n is the rank of MASK.

SEGMENT (optional) must be of type logical and must have the same shape as MASK.

EXCLUSIVE (optional) must be of type logical and must be scalar.

Result Type, Type Parameter, and Shape. Same as MASK.

Result Value. Element r of the result has the value PARITY((/ a1,...,am /)) where (a1,...,am) is the (possibly empty) set of elements of MASK selected to contribute to by the rules stated in Section 7.4.5.

Example. PARITY_PREFIX( (/T,F,T,T,T/), SEGMENT= (/F,F,F,T,T/) ) is [T T F T F].