summaryrefslogtreecommitdiff
path: root/numpy/lib/twodim_base.py
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2009-07-04 12:59:02 +0000
committerPauli Virtanen <pav@iki.fi>2009-07-04 12:59:02 +0000
commit144d790100cdbb03ec791d639ee21436ea4c2dc6 (patch)
treebc9a406d9175f90ba34f9980f949b57a08444ed4 /numpy/lib/twodim_base.py
parentf826c7b7f2719a95731da14102d28cc7f3147c01 (diff)
downloadnumpy-144d790100cdbb03ec791d639ee21436ea4c2dc6.tar.gz
Fix versioning and inclusion to ref. guide in docs for #1132
Diffstat (limited to 'numpy/lib/twodim_base.py')
-rw-r--r--numpy/lib/twodim_base.py20
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")