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

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -