jax.numpy.bitwise_xor

Contents

jax.numpy.bitwise_xor#

jax.numpy.bitwise_xor(x, y, /)[source]#

Compute the bit-wise XOR of two arrays element-wise.

LAX-backend implementation of numpy.bitwise_xor().

Original docstring below.

Computes the bit-wise XOR of the underlying binary representation of the integers in the input arrays. This ufunc implements the C/Python operator ^.

Returns:

out – Result. This is a scalar if both x1 and x2 are scalars.

Return type:

ndarray or scalar

Parameters:
  • x (jax.typing.ArrayLike)

  • y (jax.typing.ArrayLike)