jax.lax.bitwise_and#

jax.lax.bitwise_and(x, y)[source]#

Elementwise AND: \(x \wedge y\).

This function lowers directly to the stablehlo.and operation.

Parameters:
  • x (ArrayLike) – Input arrays. Must have matching boolean or integer dtypes. If neither is a scalar, x and y must have the same number of dimensions and be broadcast compatible.

  • y (ArrayLike) – Input arrays. Must have matching boolean or integer dtypes. If neither is a scalar, x and y must have the same number of dimensions and be broadcast compatible.

Returns:

An array of the same dtype as x and y containing the bitwise AND of each pair of broadcasted entries.

Return type:

Array

See also