__invert__

array.__invert__() array

Evaluates ~self_i for each element of an array instance.

Parameters:

self (array) – array instance. 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 self.

Note

Element-wise results must equal the results returned by the equivalent element-wise function bitwise_invert().