jax.lax.bitwise_not#
- jax.lax.bitwise_not(x)[source]#
Elementwise NOT: \(\neg x\).
This function lowers directly to the stablehlo.not operation.
- Parameters:
x (ArrayLike) – Input array. Must have boolean or integer dtype.
- Returns:
An array of the same shape and dtype as
xcontaining the bitwise inversion of each entry.- Return type:
See also
jax.numpy.invert(): NumPy wrapper for this API, also accessible via the~xoperator on JAX arrays.jax.lax.bitwise_and(): Elementwise AND.jax.lax.bitwise_or(): Elementwise OR.jax.lax.bitwise_xor(): Elementwise exclusive OR.