summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2019-07-23 21:48:07 -0700
committerGitHub <noreply@github.com>2019-07-23 21:48:07 -0700
commit691e6dbe1fd70c7638daf3ab38e877419babeed2 (patch)
treebd05c184a6344bd8c5cccbe296e6f7554338dea0
parente644f620a6fc9e30f93f9d37f8da2f4a700fa3eb (diff)
parenta3ca52f7738bc75eb5bdc6b840fe8dc674cda603 (diff)
downloadnumpy-691e6dbe1fd70c7638daf3ab38e877419babeed2.tar.gz
Merge pull request #14096 from hvy/docs-tri-ij
DOC: fix documentation of i and j for tri.
-rw-r--r--numpy/lib/twodim_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/twodim_base.py b/numpy/lib/twodim_base.py
index f3dc6c8e1..f45392188 100644
--- a/numpy/lib/twodim_base.py
+++ b/numpy/lib/twodim_base.py
@@ -368,7 +368,7 @@ def tri(N, M=None, k=0, dtype=float):
-------
tri : ndarray of shape (N, M)
Array with its lower triangle filled with ones and zero elsewhere;
- in other words ``T[i,j] == 1`` for ``i <= j + k``, 0 otherwise.
+ in other words ``T[i,j] == 1`` for ``j <= i + k``, 0 otherwise.
Examples
--------