[Cython] Cython array type: Summary, introducing CEP 518

Stefan Behnel stefan_ml at behnel.de
Fri Jun 19 13:13:56 CEST 2009


Dag Sverre Seljebotn wrote:
> Just for clarification (I looked up your earlier post but didn't find
> it): Would the non-SIMD view type (your 2)) support more than one
> dimension?

Didn't think about that, but I'd say why not.


> How would +, +=, append semantics be defined if there's more
> than one dimension?

Likely not at all, i.e. you'd get an error either at runtime or at compile
time (if doable). It would also be possible to consider a
multi-dimensional view a view on a recursive sequence instead (like tuples
of tuples), so that it would concatenate the first dimension. I'm open to
both, depending on what use cases we come up with (meaning: if we don't
currently care, this would be an error until further consideration).

Stefan



More information about the Cython-dev mailing list