dpnp.invert
- dpnp.invert(x, **kwargs)[source]
Compute bit-wise inversion, or bit-wise NOT, element-wise.
For full documentation refer to
numpy.invert.Limitations
Parameters
xis supported asdpnp.ndarray. Keyword argumentskwargsare currently unsupported. Otherwise the function will be executed sequentially on CPU. Input arrayxis supported as integerdpnp.ndarrayonly.See also
dpnp.bitwise_andCompute the bit-wise AND of two arrays element-wise.
dpnp.bitwise_orCompute the bit-wise OR of two arrays element-wise.
dpnp.bitwise_xorCompute the bit-wise XOR of two arrays element-wise.
dpnp.logical_notCompute the truth value of NOT x element-wise.
Examples
>>> import dpnp as np >>> x = np.array([13]) >>> out = np.invert(x) >>> out[0] -14