Binary operations

Elementwise bit operations

bitwise_and(x1) Compute the bit-wise AND of two arrays element-wise.
bitwise_or(x1) Compute the bit-wise OR of two arrays element-wise.
bitwise_xor(x1) Compute the bit-wise XOR of two arrays element-wise.
invert() Compute bit-wise inversion, or bit-wise NOT, element-wise.
left_shift(x1) Shift the bits of an integer to the left.
right_shift(x1) Shift the bits of an integer to the right.

Bit packing

packbits
unpackbits

Output formatting

binary_repr

Table Of Contents

Previous topic

numpy.not_equal

Next topic

numpy.bitwise_and

This Page