### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Logic functions »

# numpy.not_equal

`numpy.``not_equal`(x1, x2[, out])

  Return (x1 != x2) element-wise.

  Parameters: | x1, x2 : array_like Input arrays. out : ndarray, optional A placeholder the same shape as x1 to store the result.
  Returns: | not_equal : ndarray bool, scalar bool For each element in x1, x2, return True if x1 is not equal to x2 and False otherwise.

  See also

  `equal`, `greater`, `greater_equal`, `less`, `less_equal`

  Examples

      >>> np.not_equal([1.,2.], [1., 3.])
      array([False,  True], dtype=bool)

### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Logic functions »