summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2017-02-19 02:19:45 +0000
committerGitHub <noreply@github.com>2017-02-19 02:19:45 +0000
commit4f8ccdf83cb447a35a410d8904f3299f5a384b9c (patch)
tree8519604d18025157b93127705d5ecbc19860cbd7
parent7a66807ea791c5e2571f09e59ff6dc3fd72c243f (diff)
parente7c15600e2c5e2b66a0e26f8511145c588166271 (diff)
downloadnumpy-4f8ccdf83cb447a35a410d8904f3299f5a384b9c.tar.gz
Merge pull request #8631 from anntzer/fill_diagonal-typo
Fix typo in fill_diagonal docstring.
-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