bitwise_invertΒΆ
- bitwise_invert(x: array, /) array ΒΆ
Inverts (flips) each bit for each element
x_i
of the input arrayx
.- Parameters:
x (array) β input array. Should have an integer or boolean data type.
- Returns:
out (array) β an array containing the element-wise results. The returned array must have the same data type as
x
.