dpnp.bitwise_not
- dpnp.bitwise_not(x, **kwargs)
Compute bit-wise inversion, or bit-wise NOT, element-wise.
For full documentation refer to
numpy.invert
.Limitations
Parameters
x
is supported asdpnp.ndarray
. Keyword argumentskwargs
are currently unsupported. Otherwise the function will be executed sequentially on CPU. Input arrayx
is supported as integerdpnp.ndarray
only.See also
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.
dpnp.bitwise_xor
Compute the bit-wise XOR of two arrays element-wise.
dpnp.logical_not
Compute the truth value of NOT x element-wise.
Examples
>>> import dpnp as np >>> x = np.array([13]) >>> out = np.invert(x) >>> out[0] -14