[Cython] array assignment

Gabriel Gellner ggellner at uoguelph.ca
Thu Oct 2 23:00:40 CEST 2008


is there any way to assign an cdef C array at assignment time?

I want something like:

    cdef double a[4] = {0.5, 0.3, 0.1, 0.1}

as anything like this possible in Cython? Or do I need to do explicit
initialization.

Gabriel


More information about the Cython-dev mailing list