| 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.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.