On Thursday, October 16, 2014 8:31:20 PM UTC+1, Dima Pasechnik wrote:
>
> Strange that Cython does not allow a proper cast, to (int (*)[])). 


Considering that Cython doesn't allow VLAs its probably not surprising. 
Just make a C macro for the cast. Or lie to Cython 

ctypedef int* vlamatrix "(int (*)[])"

and use that to call f(n, <vlamatrix>a)

Now we just need to find whoever came up with (int (*)[])) as syntax for 
cast to VLA matrix...

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to