diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-08-29 17:56:21 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-08-29 17:56:21 +0000 |
commit | 63326185c04be2795a7a33028d427e9c8c31c900 (patch) | |
tree | 62fb5b9f5f7b6e518346fa0893e408fa24755021 /numpy/lib/shape_base.py | |
parent | 064c8eb43637e920f6019215b00ef1593d74b0c1 (diff) | |
download | numpy-63326185c04be2795a7a33028d427e9c8c31c900.tar.gz |
Clean-up some un-needed default axes. Fix default axes of ma.sum and ma.product
Diffstat (limited to 'numpy/lib/shape_base.py')
-rw-r--r-- | numpy/lib/shape_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/shape_base.py b/numpy/lib/shape_base.py index 03db2570a..d44215446 100644 --- a/numpy/lib/shape_base.py +++ b/numpy/lib/shape_base.py @@ -32,7 +32,7 @@ def apply_along_axis(func1d,axis,arr,*args): if isscalar(res): outarr = zeros(outshape,asarray(res).dtype) outarr[ind] = res - Ntot = product(outshape,axis=0) + Ntot = product(outshape) k = 1 while k < Ntot: # increment the index @@ -48,7 +48,7 @@ def apply_along_axis(func1d,axis,arr,*args): k += 1 return outarr else: - Ntot = product(outshape,axis=0) + Ntot = product(outshape) holdshape = outshape outshape = list(arr.shape) outshape[axis] = len(res) |