9.212. PARITY
9.212 PARITY — Reduction with exclusive OR
- Description:
-
Calculates the parity, i.e. the reduction using
.XOR.
, of MASK along dimension DIM. - Standard:
-
Fortran 2008 and later
- Class:
-
Transformational function
- Syntax:
-
RESULT = PARITY(MASK[, DIM])
- Arguments:
-
LOGICAL Shall be an array of type LOGICAL
DIM (Optional) shall be a scalar of type INTEGER
with a value in the range from 1 to n, where n equals the rank of MASK. - Return value:
-
The result is of the same t