summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-08-05 07:50:50 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-08-05 07:50:50 +0000
commitd372798ae6bf88c3a4414027341d2b0322941c68 (patch)
treef0df1e8e8de70e6f0240cceee251838c31fcf864 /numpy/lib/function_base.py
parent3457ac34f84f502de194ad825c0db4cb0d56dc82 (diff)
downloadnumpy-d372798ae6bf88c3a4414027341d2b0322941c68.tar.gz
Move location of flatnonzero
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r--numpy/lib/function_base.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 548af953d..a56233d34 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -8,7 +8,6 @@ __all__ = ['logspace', 'linspace',
'histogram', 'bincount', 'digitize', 'cov', 'corrcoef', 'msort',
'median', 'sinc', 'hamming', 'hanning', 'bartlett', 'blackman',
'kaiser', 'trapz', 'i0', 'add_newdoc', 'add_docstring', 'meshgrid',
- 'flatnonzero'
]
import types
@@ -998,11 +997,4 @@ def meshgrid(x,y):
y = y.reshape(numRows,1)
Y = y.repeat(numCols, axis=1)
return X, Y
-
-def flatnonzero(a):
- """Return indicies that are not-zero in flattened version of a
-
- Equivalent to a.ravel().nonzero()[0]
- """
- return a.ravel().nonzero()[0]