I'd like to duplicate each line of an array N times. Is there a quick way to do so?
Example (N=3):
# INPUT
a=np.arange(9).reshape(3,3)
array([[0, 1, 2],
[3, 4, 5],
[6, 7, 8]])
# OUTPUT
array([[0, 1, 2],
[0, 1, 2],
[0, 1, 2],
[3, 4, 5],
[3, 4, 5],
[3, 4, 5],
[6, 7, 8],
[6, 7, 8],
[6, 7, 8]])