summaryrefslogtreecommitdiff
path: root/numpy/lib/index_tricks.py
diff options
context:
space:
mode:
authorFrançois Magimel <francois.magimel@etu.enseeiht.fr>2015-06-24 16:05:43 +0200
committerFrançois Magimel <francois.magimel@etu.enseeiht.fr>2015-06-24 16:05:43 +0200
commit34449614e34065e4599787095b90928dc22afb14 (patch)
tree0b09fe7823d399addf5304644bd4b44d500e54a1 /numpy/lib/index_tricks.py
parent3d2b8ca9bcbdbc9e835cb3f8d56c2d93a67b00aa (diff)
downloadnumpy-34449614e34065e4599787095b90928dc22afb14.tar.gz
DOC, MAINT: fix typo in np.fill_diagonal docstring example
Diffstat (limited to 'numpy/lib/index_tricks.py')
-rw-r--r--numpy/lib/index_tricks.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py
index 030261dee..cece8ac8d 100644
--- a/numpy/lib/index_tricks.py
+++ b/numpy/lib/index_tricks.py
@@ -724,7 +724,9 @@ def fill_diagonal(a, val, wrap=False):
[0, 0, 0],
[0, 0, 4]])
- # tall matrices no wrap
+ The wrap option affects only tall matrices:
+
+ >>> # tall matrices no wrap
>>> a = np.zeros((5, 3),int)
>>> fill_diagonal(a, 4)
>>> a
@@ -734,7 +736,7 @@ def fill_diagonal(a, val, wrap=False):
[0, 0, 0],
[0, 0, 0]])
- # tall matrices wrap
+ >>> # tall matrices wrap
>>> a = np.zeros((5, 3),int)
>>> fill_diagonal(a, 4, wrap=True)
>>> a
@@ -744,7 +746,7 @@ def fill_diagonal(a, val, wrap=False):
[0, 0, 0],
[4, 0, 0]])
- # wide matrices
+ >>> # wide matrices
>>> a = np.zeros((3, 5),int)
>>> fill_diagonal(a, 4, wrap=True)
>>> a