This is documentation for an old release of NumPy (version 1.3.). Read this page in the documentation of the latest stable release (version > 1.17).
Return (x1 != x2) element-wise.
Parameters: | x1, x2 : array_like
out : ndarray, optional
|
---|---|
Returns: | not_equal : ndarray bool, scalar bool
|
See also
Examples
>>> np.not_equal([1.,2.], [1., 3.])
array([False, True], dtype=bool)