NAME
     PARITY

SYNOPSIS
     USE HPF_LIBRARY

     PARITY(MASK, DIM)

DESCRIPTION
     PARITY Determines whether an odd number of values  are  true
     in MASK along dinesion DIM.

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

     DIM  this is an optional argument.  If present, it  must  be
          scalar  and of type integer with a value in the range 1
          <= DIM <= n, where n is the rank of ARRAY.

RESULT TYPE
     The result is of type logical with the same kind type param-
     eter as MASK.

SEE ALSO
     IPARITY, IALL, IANY.