diff options
author | rgommers <ralf.gommers@googlemail.com> | 2010-07-31 10:04:38 +0000 |
---|---|---|
committer | rgommers <ralf.gommers@googlemail.com> | 2010-07-31 10:04:38 +0000 |
commit | d0a25f19139a2987af5a4e2d1ebf4badb2802c16 (patch) | |
tree | 3d7218398060ce0c4f9d9d37241764fd57a8314a /numpy/lib/shape_base.py | |
parent | c38c9d4cd338cc147b67f1f160d69ab7ef0df097 (diff) | |
download | numpy-d0a25f19139a2987af5a4e2d1ebf4badb2802c16.tar.gz |
DOC: wiki merge, twodim_base and a few loose ones.
Diffstat (limited to 'numpy/lib/shape_base.py')
-rw-r--r-- | numpy/lib/shape_base.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/numpy/lib/shape_base.py b/numpy/lib/shape_base.py index ff187c63b..5ea2648cb 100644 --- a/numpy/lib/shape_base.py +++ b/numpy/lib/shape_base.py @@ -126,27 +126,26 @@ def apply_over_axes(func, a, axes): `func` is called as `res = func(a, axis)`, where `axis` is the first element of `axes`. The result `res` of the function call must have - either the same dimensions as `a` or one less dimension. If `res` has one - less dimension than `a`, a dimension is inserted before `axis`. - The call to `func` is then repeated for each axis in `axes`, + either the same dimensions as `a` or one less dimension. If `res` + has one less dimension than `a`, a dimension is inserted before + `axis`. The call to `func` is then repeated for each axis in `axes`, with `res` as the first argument. Parameters ---------- func : function This function must take two arguments, `func(a, axis)`. - a : ndarray + a : array_like Input array. axes : array_like - Axes over which `func` is applied, the elements must be - integers. + Axes over which `func` is applied; the elements must be integers. Returns ------- val : ndarray - The output array. The number of dimensions is the same as `a`, but - the shape can be different. This depends on whether `func` changes - the shape of its output with respect to its input. + The output array. The number of dimensions is the same as `a`, + but the shape can be different. This depends on whether `func` + changes the shape of its output with respect to its input. See Also -------- |