I am looking to implement what I think is best approximated as a doubly linked list. It is actually three matrices where pointers can point from cell to cell between matrices. Here is an example of what it looks like graphically.
Right now I have the actual values (M, Ix, Iy) as numpy arrays. I was thinking of storing the pointers as numpy chararrays, but it still seems kludgy particularly since I will have to store two characters, one to represent parent array and the other to represent the direction.
If there is no easy way to directly point to the memory address of these numpy positions (but I'm not set on that, an earlier implementation was a dict and I considered lists for a while) what is the best way to represent these 'pointers'?