You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ipythonIn [1]: importnumpyasnpIn [2]: a=np.array([1] ,dtype=bool)
In [3]: aOut[3]: array([ True])
In [4]: ~aOut[4]: array([False])
In [5]: np.invert(a)
Out[5]: array([False])
In [6]:
So, I want to confirm the equivalence of the np.invert and ~ operators by inspecting their corresponding cpython primitive definition. Is there a way for me to skip to them from the python script with the help of anaconda-mode?