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
x1
orx2
should be asdpnp.ndarray
. If eitherx1
orx2
is 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.equal
Return (x1 == x2) element-wise.
dpnp.greater
Return the truth value of (x1 > x2) element-wise.
dpnp.greater_equal
Return the truth value of (x1 >= x2) element-wise.
dpnp.less
Return the truth value of (x1 < x2) element-wise.
dpnp.less_equal
Return 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]