diff options
| author | Travis Oliphant <oliphant@enthought.com> | 2006-01-20 08:47:02 +0000 |
|---|---|---|
| committer | Travis Oliphant <oliphant@enthought.com> | 2006-01-20 08:47:02 +0000 |
| commit | e8d618404b33962e896c45c6419c5daabdee4961 (patch) | |
| tree | ac8df11cd62ac7c65a203f9198a2027179a9d02a /numpy/core/src/arrayobject.c | |
| parent | 502af603c2b1cc85696fc62f4b0a79842887f07b (diff) | |
| download | numpy-e8d618404b33962e896c45c6419c5daabdee4961.tar.gz | |
Fixed error in no-axis methods for matrices.
Diffstat (limited to 'numpy/core/src/arrayobject.c')
| -rw-r--r-- | numpy/core/src/arrayobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c index eec1a4d00..c719cbc4c 100644 --- a/numpy/core/src/arrayobject.c +++ b/numpy/core/src/arrayobject.c @@ -3273,7 +3273,7 @@ _check_axis(PyArrayObject *arr, int *axis, int flags) if ((*axis >= MAX_DIMS) || (n==0)) { temp = PyArray_Ravel(arr,0); - *axis = 0; + *axis = PyArray_NDIM(temp)-1; return temp; } else { |
