1 | initial version |
For homogeneous arrays I would use STL vectors. There is an example for how to access STL vectors from Cython shipped with Sage, see sage/tests/stl_vector.pyx
.
For more complicated data structures mixing all kinds of types just encapsulate it into a Cython class.