python - Memoryview on c array in cython -
error initializing memoryview variable. code:
cdef int *popref = <int*>malloc(popsize * sizeof(int)) cdef int [:] popref_mv = popref
and error getting:
error: cdef int [:] popref_mv = popref ^ expected identifier or literal
running python 2.6.6, gcc 4.4.7, cython 0.14.1 on red hat linux.
Comments
Post a Comment