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

Popular posts from this blog

android - questions about switching from C2DM to GCM -

c++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -