How can I repeat the following example sequence:
l = np.array([3,4,5,6,7])
Up to n times, doubling the values on each repetition. So for n=3:
[3, 4, 5, 6, 7, 6, 8, 10, 12, 14, 12, 16, 20, 24, 28]
Is there a simple way avoiding loops with numpy perhaps?