summaryrefslogtreecommitdiff
path: root/numpy/lib/index_tricks.py
diff options
context:
space:
mode:
authorAntony Lee <anntzer.lee@gmail.com>2017-02-17 13:53:36 -0800
committerAntony Lee <anntzer.lee@gmail.com>2017-02-18 13:22:08 -0800
commite7c15600e2c5e2b66a0e26f8511145c588166271 (patch)
tree1f302f8b38130e9965105144e9ed8a6537af0c00 /numpy/lib/index_tricks.py
parentd55f40b1e48d5a5fbed80e00a140c9db6e19732f (diff)
downloadnumpy-e7c15600e2c5e2b66a0e26f8511145c588166271.tar.gz
DOC: Fix typo in fill_diagonal docstring.
Diffstat (limited to 'numpy/lib/index_tricks.py')
-rw-r--r--numpy/lib/index_tricks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py
index f573cd4c6..7f9419e9b 100644
--- a/numpy/lib/index_tricks.py
+++ b/numpy/lib/index_tricks.py
@@ -658,8 +658,8 @@ s_ = IndexExpression(maketuple=False)
def fill_diagonal(a, val, wrap=False):
"""Fill the main diagonal of the given array of any dimensionality.
- For an array `a` with ``a.ndim > 2``, the diagonal is the list of
- locations with indices ``a[i, i, ..., i]`` all identical. This function
+ For an array `a` with ``a.ndim >= 2``, the diagonal is the list of
+ locations with indices ``a[i, ..., i]`` all identical. This function
modifies the input array in-place, it does not return a value.
Parameters