[Cython] Cython array type: Summary
Robert Bradshaw
robertwb at math.washington.edu
Thu Jun 18 10:42:20 CEST 2009
I'm partially responsible, but this thread keeps digressing into
implementation details. As a high level view, what do people think about
1) Some kind of SIMD array type being added to the language.
2) The given proposal, which is essentially a type with syntax like
int[:,:] that would behave just like a the widely-used numpy array,
including slicing and (eventually) broadcasting, but the underlying
memory may be held by something other than an numpy object (e.g. it
could be any other buffer supporting object, or a raw pointer) and
not all numpy operations would be supported right away (or ever).
While we're on that note, what about
3) Some kind of type for memory-managed lists of C types (where + is
concatenation, append is supported, memory managed, and nice
conversion to/from python lists).
I am in favor of all three, and obviously Dag is pushing for (1) and
(2).
- Robert
More information about the Cython-dev
mailing list