summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
diff options
context:
space:
mode:
authorMark Wiebe <mwwiebe@gmail.com>2011-01-16 01:48:42 -0800
committerMark Wiebe <mwwiebe@gmail.com>2011-01-16 01:48:42 -0800
commit165d98d9a574aaba367f20b4fcd8dec7fda0bafb (patch)
treee95edbebc6ba31a11481974c5d50ade444338a9d /numpy/core/fromnumeric.py
parent1604e898911755ee29f829ee2ae1ffcc80c3dade (diff)
downloadnumpy-165d98d9a574aaba367f20b4fcd8dec7fda0bafb.tar.gz
ENH: core: Switch nonzero to use the iterator as an example, add count_nonzero function
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r--numpy/core/fromnumeric.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py
index e97e50c87..76b74e223 100644
--- a/numpy/core/fromnumeric.py
+++ b/numpy/core/fromnumeric.py
@@ -1136,6 +1136,8 @@ def nonzero(a):
array.
ndarray.nonzero :
Equivalent ndarray method.
+ count_nonzero :
+ Counts the number of non-zero elements in the input array.
Examples
--------