diff options
author | Bas van Beek <b.f.van.beek@vu.nl> | 2021-09-25 12:28:01 +0200 |
---|---|---|
committer | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2021-09-25 16:44:23 +0200 |
commit | 783fa0d3ce60227fa4807430555fd289a8ac89cd (patch) | |
tree | ace2f4b2ca3768ec23f1c7b997177beeb34261c0 | |
parent | 35dc3e2a07e0f4f9a66aaa92d232fb6a7a450268 (diff) | |
download | numpy-783fa0d3ce60227fa4807430555fd289a8ac89cd.tar.gz |
DOC: Update the signatures of `nested_iters` and `nditer.remove_axis`
-rw-r--r-- | numpy/core/_add_newdocs.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/core/_add_newdocs.py b/numpy/core/_add_newdocs.py index 06f2a6376..446257f7d 100644 --- a/numpy/core/_add_newdocs.py +++ b/numpy/core/_add_newdocs.py @@ -478,7 +478,7 @@ add_newdoc('numpy.core', 'nditer', ('iternext', add_newdoc('numpy.core', 'nditer', ('remove_axis', """ - remove_axis(i) + remove_axis(i, /) Removes axis `i` from the iterator. Requires that the flag "multi_index" be enabled. @@ -504,6 +504,8 @@ add_newdoc('numpy.core', 'nditer', ('reset', add_newdoc('numpy.core', 'nested_iters', """ + nested_iters(op, axes, flags=None, op_flags=None, op_dtypes=None, order="K", casting="safe", buffersize=0) + Create nditers for use in nested loops Create a tuple of `nditer` objects which iterate in nested loops over @@ -796,7 +798,7 @@ add_newdoc('numpy.core.multiarray', 'array', object : array_like An array, any object exposing the array interface, an object whose __array__ method returns an array, or any (nested) sequence. - If object is a scalar, a 0-dimensional array containing object is + If object is a scalar, a 0-dimensional array containing object is returned. dtype : data-type, optional The desired data-type for the array. If not given, then the type will |