If we have np.ndarray[double, ndim=2] array
then &(array[row,0]) and &(array[0,column]) is a trick to get a pointer to a row or a column. Strangely, the expression is only allowed in cdef functions. In Python callable functions, it produces the error message "Cannot take address of Python variable". However, the type of &(a[row,column]) is double *, which is not the address of a Python variable. Sturla Molden _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
