2009/8/16 Chris Colbert <[email protected]>:
> I have a 1x3 array that I want to repeat n times and form an nx3 array
> where each row is a copy of the original array.

a = np.arange(3)[None, :]
np.repeat(a, 10, axis=0)

Regards
Stéfan
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to