parameters: (ar1, ar2, assume_unique=False)
return_statement: return aux[flag2]
docstring: Set exclusive-or of 1-D arrays with unique elements.
  
      The output is always a masked array. See `numpy.setxor1d` for more details.
  
      See Also
      --------
      numpy.setxor1d : Equivalent function for ndarrays.
docstring_summary: Set exclusive-or of 1-D arrays with unique elements.
docstring_tokens: Set exclusive - or of 1 - D arrays with unique elements .
function: def setxor1d(ar1, ar2, assume_unique=False):
      """
      Set exclusive-or of 1-D arrays with unique elements.
  
      The output is always a masked array. See `numpy.setxor1d` for more details.
  
      See Also
      --------
      numpy.setxor1d : Equivalent function for ndarrays.
  
      """
      if not assume_unique:
          ar1 = unique(ar1)
          ar2 = unique(ar2)
  
      aux = ma.concatenate((ar1, ar2))
      if aux.size == 0:
          return aux
      aux.sort()
      auxf = aux.filled()
  #    flag = ediff1d( aux, to_end = 1, to_begin = 1 ) == 0
      flag = ma.concatenate(([True], (auxf[1:] != auxf[:-1]), [True]))
  #    flag2 = ediff1d( flag ) == 0
      flag2 = (flag[1:] == flag[:-1])
      return aux[flag2]
function_tokens: def setxor1d ( ar1 , ar2 , assume_unique = False ) : if not assume_unique : ar1 = unique ( ar1 ) ar2 = unique ( ar2 ) aux = ma . concatenate ( ( ar1 , ar2 ) ) if aux . size == 0 : return aux aux . sort ( ) auxf = aux . filled ( ) #    flag = ediff1d( aux, to_end = 1, to_begin = 1 ) == 0 flag = ma . concatenate ( ( [ True ] , ( auxf [ 1 : ] != auxf [ : - 1 ] ) , [ True ] ) ) #    flag2 = ediff1d( flag ) == 0 flag2 = ( flag [ 1 : ] == flag [ : - 1 ] ) return aux [ flag2 ]