[Pyrex] Troubles with C array (e.g. float[3]) and Pyrex 0.9.5.1a

Mike Wyatt mikejohnwyatt at gmail.com
Fri May 11 03:24:44 UTC 2007


In case it helps, I'm also running into this problem, but with a
multi-dimensional array.  Here's an excerpt from my code:

cdef void Submatrix(float matrix[4][4], float* sm, int column, int row):
    cdef int tx, ty
    cdef float submatrix[4][4]

    memset(submatrix, 0, sizeof(submatrix))           # line 35

...and here is the relevant error:

/home/mwyatt/workspace/Math3D/src/matrix.pyx:35:8: Cannot assign type 'float
(([4])[4])' to 'void (*)'


On 5/8/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
>
> Jiba wrote:
>
> > In conclusion, it looks like C arrays such as "float[3]" are no longer
> > considered as pointer by Pyrex. Is that normal ?
>
> I made some changes to the way this is implemented,
> and may have introduced some bugs in the process.
> I'll look into this.
>
> Thanks,
> Greg
>
> _______________________________________________
> Pyrex mailing list
> Pyrex at lists.copyleft.no
> http://lists.copyleft.no/mailman/listinfo/pyrex
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.copyleft.no/pipermail/pyrex/attachments/20070511/8f42b086/attachment.html 


More information about the Pyrex mailing list