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

Mike Wyatt mikejohnwyatt at gmail.com
Sun Aug 12 02:44:43 CEST 2007


Has any progress been made with this bug?

On 5/10/07, Mike Wyatt <mikejohnwyatt at gmail.com> wrote:
> 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
> >
>
>



More information about the Pyrex mailing list