dpnp.bitwise_xor
- dpnp.bitwise_xor(x1, x2, dtype=None, out=None, where=True, **kwargs)[source]
Compute the bit-wise XOR of two arrays element-wise.
For full documentation refer to
numpy.bitwise_xor
.Limitations
Parameters
x1
andx2
are supported as eitherdpnp.ndarray
or scalar. Parametersdtype
,out
andwhere
are supported with their default values. Sizes, shapes and data types of input arrays are supported to be equal. Keyword argumentskwargs
are currently unsupported. Otherwise the function will be executed sequentially on CPU. Input data is supported as integer only.See also
dpnp.logical_xor
Compute the truth value of
x1
XOR x2, element-wise.dpnp.bitwise_and
Compute the bit-wise AND of two arrays element-wise.
dpnp.bitwise_or
Compute the bit-wise OR of two arrays element-wise.
Examples
>>> import dpnp as np >>> x1 = np.array([31, 3]) >>> x2 = np.array([5, 6]) >>> out = np.bitwise_xor(x1, x2) >>> [i for i in out] [26, 5]