Sturla Molden, 25.10.2009 09:58:
> 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.

Could you provide complete code examples for the two functions you use?

Thanks,

Stefan

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to