summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Lhermitte <lhermitte@bnl.gov>2015-11-04 17:35:42 -0500
committerJulien Lhermitte <lhermitte@bnl.gov>2015-11-04 17:35:42 -0500
commit8028a7715da5d6c9b2c5586a3055fdb0ba81dab7 (patch)
tree1c7f5c34c87f9e63988da92255011347f518b63f
parent615e66b19defa2d9fbfa94d6118fb6243ae90ffe (diff)
downloadnumpy-8028a7715da5d6c9b2c5586a3055fdb0ba81dab7.tar.gz
added extra line in the tile help doc to outline a general repeat, commonly used
-rw-r--r--numpy/lib/shape_base.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/lib/shape_base.py b/numpy/lib/shape_base.py
index 615cf88f4..c2b06775a 100644
--- a/numpy/lib/shape_base.py
+++ b/numpy/lib/shape_base.py
@@ -837,6 +837,12 @@ def tile(A, reps):
[1, 2],
[3, 4]])
+ >>> c = np.array([1,2,3,4])
+ >>> np.tile(c,(4,1))
+ array([[1, 2, 3, 4],
+ [1, 2, 3, 4],
+ [1, 2, 3, 4],
+ [1, 2, 3, 4]])
"""
try:
tup = tuple(reps)