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 x containing the bitwise inversion of each entry.

Return type:

Array

See also