In Python I know how to create an array starting at some value a, incrementing each component thereon by some m until it reaches some value b:
array = numpy.arange(a, b, m)
However, what if I want m to change? Specifically, I want the array 1,2,...9,10,20,...90,100,200,...900,1000..
So increasing my increment by a factor of 10 every ten components. What would be the easiest way to achieve this? If I had to I could use loops and do this 'manually' but is there a nicer way?