dpnp.not_equal
- dpnp.not_equal(x1, x2)[source]
Return (x1 != x2) element-wise.
For full documentation refer to
numpy.not_equal.Limitations
At least either
x1orx2should be asdpnp.ndarray. If eitherx1orx2is scalar then other one should bedpnp.ndarray. Otherwise the function will be executed sequentially on CPU. Input array data types are limited by supported DPNP Data types.See also
dpnp.equalReturn (x1 == x2) element-wise.
dpnp.greaterReturn the truth value of (x1 > x2) element-wise.
dpnp.greater_equalReturn the truth value of (x1 >= x2) element-wise.
dpnp.lessReturn the truth value of (x1 < x2) element-wise.
dpnp.less_equalReturn the truth value of (x1 =< x2) element-wise.
Examples
>>> import dpnp as np >>> x1 = np.array([1., 2.]) >>> x2 = np.arange(1., 3.) >>> out = np.not_equal(x1, x2) >>> [i for i in out] [False, False]