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 as dpnp.ndarray. Keyword arguments kwargs are currently unsupported. Otherwise the function will be executed sequentially on CPU. Input array x is supported as integer dpnp.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