Say you want to create a 2D numpy array, and want to populate it with sequential integers. What are the options available?
Example:
import numpy
a=numpy.array([[0,1,2,3,4],[5,6,7,8,9],[10,11,12,13,14]])
In this case of course I could use range(15) to determine the upper boundary, but how to tell numpy to create a new row after 5 values? I am looking for a general solution, as my real problem revolves around a 2D array with 466 columns and 365 rows.