jax.lax.bitwise_or
Contents
jax.lax.bitwise_or#
- jax.lax.bitwise_or(x,y)[source]#
Elementwise OR:\(x \vee y\).
This function lowers directly to thestablehlo.or operation.
- Parameters:
x (ArrayLike) – Input arrays. Must have matching boolean or integer dtypes.If neither is a scalar,
xandymust have the same numberof dimensions and be broadcast compatible.y (ArrayLike) – Input arrays. Must have matching boolean or integer dtypes.If neither is a scalar,
xandymust have the same numberof dimensions and be broadcast compatible.
- Returns:
An array of the same dtype as
xandycontaining the bitwiseOR of each pair of broadcasted entries.- Return type:
See also
jax.numpy.invert(): NumPy wrapper for this API, also accessiblevia thex|yoperator on JAX arrays.jax.lax.bitwise_not(): Elementwise NOT.jax.lax.bitwise_and(): Elementwise AND.jax.lax.bitwise_xor(): Elementwise exclusive OR.
