From bf11f95e33c68c2666a6551287c79942a72cf378 Mon Sep 17 00:00:00 2001 From: Ross Barnowski Date: Thu, 25 Jun 2020 20:34:26 -0700 Subject: DOC: rm matrix from triu docstring. Replace "matrix" with "array" to avoid confusion re: np.matrix. Consistent with other np.tri\* functions. --- numpy/lib/twodim_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib') diff --git a/numpy/lib/twodim_base.py b/numpy/lib/twodim_base.py index 320a24856..2bb4c78a5 100644 --- a/numpy/lib/twodim_base.py +++ b/numpy/lib/twodim_base.py @@ -441,7 +441,7 @@ def triu(m, k=0): """ Upper triangle of an array. - Return a copy of a matrix with the elements below the `k`-th diagonal + Return a copy of an array with the elements below the `k`-th diagonal zeroed. Please refer to the documentation for `tril` for further details. -- cgit v1.2.1