diff options
author | Stefan van der Walt <stefan@sun.ac.za> | 2009-07-04 10:14:07 +0000 |
---|---|---|
committer | Stefan van der Walt <stefan@sun.ac.za> | 2009-07-04 10:14:07 +0000 |
commit | 9397ecd192974fa623492a677d7b2fb2d715c137 (patch) | |
tree | 3328bd28fa028bd85034342ef7a83c13f61f102c /numpy/core/numeric.py | |
parent | d597456abd4f7f5aa765667c800a07b1b64fa111 (diff) | |
download | numpy-9397ecd192974fa623492a677d7b2fb2d715c137.tar.gz |
Fix argwhere to work with lists, add tests.
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index aacd476b6..b2ac65cda 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -535,7 +535,7 @@ def argwhere(a): [1, 2]]) """ - return asarray(a.nonzero()).T + return transpose(asarray(a).nonzero()) def flatnonzero(a): """ |