dpnp.logical_or

dpnp.logical_or(x1, x2, out=None, **kwargs)[source]

Compute the truth value of x1 OR x2 element-wise.

For full documentation refer to numpy.logical_or.

Limitations

Input arrays are supported as dpnp.ndarray. Otherwise the function will be executed sequentially on CPU. Input array data types are limited by supported DPNP Data types. Parameter out is supported only with default value None. Parameter where is supported only with default value True.

See also

dpnp.logical_and

Compute the truth value of x1 AND x2 element-wise.

dpnp.logical_not

Compute the truth value of NOT x element-wise.

dpnp.logical_xor

Compute the truth value of x1 XOR x2, element-wise.

dpnp.bitwise_or

Compute the bit-wise OR of two arrays element-wise.

Examples

>>> import dpnp as np
>>> x1 = np.array([True, False])
>>> x2 = np.array([False, False])
>>> out = np.logical_or(x1, x2)
>>> [i for i in out]
[True, False]