Great! Just tried it and it works fine!
I gain something like a tenfold factor in speed with respect to my
initial python code.
>From what I read I expect I should still gain quite a lot by
optimizing the calls to the Numpy functions.
Namely using the buffer notation defining the type of array I am using.
A question arises, should I also apply this notation in the definition
of my pointers? and if yes, how?

so, I presently have statements like:
cdef int (*locate)(DelayLine, np.ndarray)

and would write something like:
 cdef int (*locate)(DelayLine, np.ndarray[DTYPE_t,ndim=2])

but compilation fails saying that a closing square bracket is missing
(])... in the description of the notation in the docs, one sees that
the name of the numpy array directly follows the
description... How to proceed?
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to