Optional Argument. DIM
Description. Determine whether an odd number of values are true in MASK along dimension DIM.
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 , where is the rank of MASK. The corresponding actual argument must not be an optional dummy argument.
Result Type, Type Parameter, and Shape. The result is of type logical with the same kind type parameter as MASK. It is scalar if DIM is absent or if MASK has rank one; otherwise, the result is an array of rank and shape where is the shape of MASK.
Result Value.
*

(i): The result of PARITY(MASK) is the .NEQV. reduction of all the elements of MASK. If MASK has size zero, the result has the value false. See Section .

(ii): If MASK has rank one, PARITY(MASK, DIM=1) has a value equal to that of PARITY(MASK). Otherwise, the value of element of PARITY(MASK, DIM=1) is equal to PARITY(MASK())
Examples.
*

(i): The value of PARITY((/T, T, T, F/)) is true. (ii): If B is the array , T T F T T T ,, plus 1filll -1; T T F T T T ,; plus 1filll -1: T T F T T T ,: plus 1filll -1.plus 1filll T T F T T T ,.-50 T T F T T T , plus 1filll-1, then PARITY(B, DIM = 1) is ,F, F, T,, plus 1filll -1;F, F, T,; plus 1filll -1:F, F, T,: plus 1filll -1.F, F, T,. plus 1filll -1F, F, T, plus 1filll-1 and PARITY(B, DIM = 2) is ,F, T,, plus 1filll -1;F, T,; plus 1filll -1:F, T,: plus 1filll -1.F, T,. plus 1filll -1F, T, plus 1filll-1.

Next: