> > zhen_qing_he_456 wrote:
> >> if in my fuction i declare a c array like:
> >> cdef int a[5]
> >> now if want to initialize my array a, i can do follow:
> >> a[0] = 1
> >> a[1] = 10
> >> :
> >> :
> >> a[4] = 3
> >> the value to my array is not continuous. Is there a quicker
> >> way in Cython to do it like in c:
> >> a[5] = {1,3,28,5,3}
> >
I don't think it's what i want...
I want declare an array with a shape at the beginning of program,then in my
function i will assign value to it by calculation.
Is there a good way to do it?
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev