diff options
Diffstat (limited to 'numpy/lib/twodim_base.py')
-rw-r--r-- | numpy/lib/twodim_base.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/numpy/lib/twodim_base.py b/numpy/lib/twodim_base.py index 533408887..6c9eb5dbb 100644 --- a/numpy/lib/twodim_base.py +++ b/numpy/lib/twodim_base.py @@ -592,6 +592,10 @@ def mask_indices(n,mask_func,k=0): The indices corresponding to the locations where mask_func(ones((n,n)),k) is True. + Notes + ----- + .. versionadded:: 1.4.0 + Examples -------- These are the indices that would allow you to access the upper triangular @@ -633,6 +637,10 @@ def tril_indices(n,k=0): k : int, optional Diagonal offset (see tril() for details). + Notes + ----- + .. versionadded:: 1.4.0 + Examples -------- Commpute two different sets of indices to access 4x4 arrays, one for the @@ -691,6 +699,10 @@ def tril_indices_from(arr,k=0): k : int, optional Diagonal offset (see tril() for details). + Notes + ----- + .. versionadded:: 1.4.0 + """ if not arr.ndim==2 and arr.shape[0] == arr.shape[1]: raise ValueError("input array must be 2-d and square") @@ -708,6 +720,10 @@ def triu_indices(n,k=0): k : int, optional Diagonal offset (see triu() for details). + Notes + ----- + .. versionadded:: 1.4.0 + Examples -------- Commpute two different sets of indices to access 4x4 arrays, one for the @@ -766,6 +782,10 @@ def triu_indices_from(arr,k=0): k : int, optional Diagonal offset (see triu() for details). + Notes + ----- + .. versionadded:: 1.4.0 + """ if not arr.ndim==2 and arr.shape[0] == arr.shape[1]: raise ValueError("input array must be 2-d and square") |