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)
>>> np.not_equal([1, 2], [[1, 3],[1, 4]])
array([[False, True],
[False, True]], dtype=bool)