[Numpy-svn] r3886 - trunk/numpy
Tue Jul 17 07:32:06 CDT 2007
Date: 2007-07-17 07:31:52 -0500 (Tue, 17 Jul 2007)
New Revision: 3886
Fix documentation for 'where'.
--- trunk/numpy/add_newdocs.py 2007-07-16 17:42:56 UTC (rev 3885)
+++ trunk/numpy/add_newdocs.py 2007-07-17 12:31:52 UTC (rev 3886)
@@ -343,11 +343,11 @@
The result is shaped like condition and has elements of x and y where
condition is respectively true or false. If x or y are not given,
- then it is equivalent to condition.nonzero().
+ condition.nonzero() is returned.
To group the indices by element, rather than dimension, use
- transpose(where(condition, | x, y))
instead. This always results in a 2d array, with a row of indices for
each element that satisfies the condition.
More information about the Numpy-svn