Good question, glad you brought this up.
I have actually worked on it personally and I can assure you it is possible by all means.
But, to give you more clarity I would like you to actually check out the official Numpy documentation under "numpy.invert".
This documentation answers your question perfectly. But, it is important that you do note this.
The bitwise_not is an alias for the invert method:
Check out the tiny snippet I have here:
>> np.bitwise_not is np.invert
>> True
And, here is where the Bit-wise NOT operator of the binary representation of the integers are present in the array input. So, how do we go about it from here?
Well the ufunc implements the Python Operator Tilde (~).
Perfect, right? Hope this helped!