Binary Operations#

Elementwise bit operations#

bitwise_not(x[, out, where])

Compute bit-wise inversion, or bit-wise NOT, element-wise.

bitwise_and(x1, x2[, out, where])

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

bitwise_or(x1, x2[, out, where])

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

bitwise_xor(x1, x2[, out, where])

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

left_shift(x1, x2[, out, where])

Shift the bits of an integer to the left.

right_shift(x1, x2[, out, where])

Shift the bits of an integer to the right.