Skip to content

Commit

Permalink
Merge pull request numpy#7834 from madphysicist/patch-1
Browse files Browse the repository at this point in the history
DOC: Added an example
  • Loading branch information
jaimefrio authored Jul 14, 2016
2 parents 08fc49e + 9a3eb4b commit 3ebf47b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions numpy/core/fromnumeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ def repeat(a, repeats, axis=None):
Examples
--------
>>> np.repeat(3, 4)
array([3, 3, 3, 3])
>>> x = np.array([[1,2],[3,4]])
>>> np.repeat(x, 2)
array([1, 1, 2, 2, 3, 3, 4, 4])
Expand Down

0 comments on commit 3ebf47b

Please sign in to comment.