[Numpy-svn] r2978 - trunk/numpy/core

numpy-svn at scipy.org numpy-svn at scipy.org
Tue Aug 8 11:10:36 CDT 2006


Author: oliphant
Date: 2006-08-08 11:10:34 -0500 (Tue, 08 Aug 2006)
New Revision: 2978

Modified:
   trunk/numpy/core/numeric.py
Log:
Add bitwise_not to numpy

Modified: trunk/numpy/core/numeric.py
===================================================================
--- trunk/numpy/core/numeric.py	2006-08-08 16:05:59 UTC (rev 2977)
+++ trunk/numpy/core/numeric.py	2006-08-08 16:10:34 UTC (rev 2978)
@@ -18,7 +18,7 @@
            'seterr', 'geterr', 'setbufsize', 'getbufsize',
            'seterrcall', 'geterrcall', 'flatnonzero',
            'Inf', 'inf', 'infty', 'Infinity',
-           'nan', 'NaN', 'False_', 'True_']
+           'nan', 'NaN', 'False_', 'True_', 'bitwise_not']
 
 import sys
 import multiarray
@@ -27,6 +27,8 @@
 import numerictypes
 from numerictypes import *
 
+bitwise_not = invert
+
 # from Fernando Perez's IPython
 def zeros_like(a):
     """Return an array of zeros of the shape and typecode of a.



More information about the Numpy-svn mailing list