jah wrote: > What I'd really like to do is pointer arithmetic, > > cdef void func(self, double *x, double *out): > *out = *x + 1 > *(out+1) = *(x+1) + 2
Not sure if it exactly answers your question, but you can
write the above as
cdef void func(self, double *x, double *out):
out[0] = x[0] + 1
out[1] = x[1] + 2
--
Greg
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev
