summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-08-08 16:10:34 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-08-08 16:10:34 +0000
commit417214841d130b0eead0f17444cf47229827548c (patch)
tree483646dcf13b27f571fe134c82c5b98a83a6e08c /numpy/core/numeric.py
parent2322210c0395765e93c89f79353522f75c8a6a19 (diff)
downloadnumpy-417214841d130b0eead0f17444cf47229827548c.tar.gz
Add bitwise_not to numpy
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r--numpy/core/numeric.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py
index aaf8989c3..36dcb0ab6 100644
--- a/numpy/core/numeric.py
+++ b/numpy/core/numeric.py
@@ -18,7 +18,7 @@ __all__ = ['newaxis', 'ndarray', 'flatiter', 'ufunc',
'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 @@ from umath import *
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.