From 165d98d9a574aaba367f20b4fcd8dec7fda0bafb Mon Sep 17 00:00:00 2001 From: Mark Wiebe Date: Sun, 16 Jan 2011 01:48:42 -0800 Subject: ENH: core: Switch nonzero to use the iterator as an example, add count_nonzero function --- numpy/core/fromnumeric.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'numpy/core/fromnumeric.py') 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 -------- -- cgit v1.2.1