dpnp.bitwise_or

dpnp.bitwise_or(x1, x2, dtype=None, out=None, where=True, **kwargs)[source]

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

For full documentation refer to numpy.bitwise_or.

Limitations

Parameters x1 and x2 are supported as either dpnp.ndarray or scalar. Parameters dtype, out and where are supported with their default values. Sizes, shapes and data types of input arrays are supported to be equal. Keyword arguments kwargs are currently unsupported. Otherwise the function will be executed sequentially on CPU. Input data is supported as integer only.

See also

dpnp.logical_or

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

dpnp.bitwise_and

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

dpnp.bitwise_xor

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

Examples

>>> import dpnp as np
>>> x1 = np.array([2, 5, 255])
>>> x2 = np.array([4, 4, 4])
>>> out = np.bitwise_or(x1, x2)
>>> [i for i in out]
[6, 5, 255]