def __invert__(self) -> ndarray:
        """a.__invert__(/)

        Return ``~self``.

        Availability
        --------
        Multiple GPUs, Multiple CPUs

        """
        if self.dtype == bool:
            # Boolean values are special, just do logical NOT
            return self._thunk._logical_not()
        else:
            return self._thunk._invert()
a.__invert__(/)

        Return ``~self``.

        Availability
        --------
        Multiple GPUs, Multiple CPUs

        
cupynumeric/_array/array.py