I would like to construct a Numpy array that starts at a specific memory address. How would I do that? I assume the solution involves ctypes but I can't figure it out from the docs.
More Details and Context
I would like to create a number of arrays whose values are all at sequential memory addresses. For example, two size 2 arrays, where the 1st mem address of the 1st array is N and the last mem address of the 2nd array is N + 3. I could achieve the same affect by making one size 4 array and slicing it... but I want to call the array constructor a separate time for each "slice." I am trying to track a bug in a certain C library.
np.ndarraycan make an array with an existing data buffer..base is not None