tile function in numpy

Construct an array by repeating A the number of times given by reps.

Syntax

tile(<array>, <repetitions>);

Example

>>> from numpy import array,tile
>>> a = array([0,1,2])
>>> b = tile(a,2)
>>> print b
[0 1 2 0 1 2]
>>> c = tile(a,5)
>>> print c
[0 1 2 0 1 2 0 1 2 0 1 2 0 1 2]