Stefan Behnel skrev:
>>    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?
>   
Forget it! My fault... It seems I forgot to declare a C variable. :-)



S.M.


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

Reply via email to