diff options
author | Illviljan <14371165+Illviljan@users.noreply.github.com> | 2021-01-15 19:31:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-15 19:31:08 +0100 |
commit | bad3b6f78a39aa89e0bbab17fbb92ce1c6d9ca96 (patch) | |
tree | 217a0a98f2135d69931d14523cb62b1897b04bfd /numpy/lib/twodim_base.py | |
parent | b038c35ff03d70780711be1116db53b1c72b224c (diff) | |
download | numpy-bad3b6f78a39aa89e0bbab17fbb92ce1c6d9ca96.tar.gz |
use same tri format
Diffstat (limited to 'numpy/lib/twodim_base.py')
-rw-r--r-- | numpy/lib/twodim_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/twodim_base.py b/numpy/lib/twodim_base.py index 8e008ba71..05e92b590 100644 --- a/numpy/lib/twodim_base.py +++ b/numpy/lib/twodim_base.py @@ -894,7 +894,7 @@ def tril_indices(n, k=0, m=None): [-10, -10, -10, -10]]) """ - tri = np.tri(n, m=m, k=k, dtype=bool) + tri = np.tri(n, m, k=k, dtype=bool) return tuple(np.broadcast_to(inds, tri.shape)[tri] for inds in np.indices(tri.shape, sparse=True)) |