dpnp.greater_equal
- dpnp.greater_equal(x1, x2)[source]
Return (x1 >= x2) element-wise.
For full documentation refer to
numpy.greater_equal
.Limitations
At least either
x1
orx2
should be asdpnp.ndarray
. Otherwise the function will be executed sequentially on CPU. Input array data types are limited by supported DPNP Data types.See also
dpnp.greater
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.
dpnp.equal
Return (x1 == x2) element-wise.
dpnp.not_equal
Return (x1 != x2) element-wise.
Examples
>>> import dpnp as np >>> x1 = np.array([4, 2, 1]) >>> x2 = np.array([2, 2, 2]) >>> out = np.greater_equal(x1, x2) >>> [i for i in out] [True, True, False]