On 11/11/2010 12:48 AM, Vineet Jain wrote: > This I undestand: > > cdef test(numpy.ndarray[numpy.int32_t, ndim=2] a): > > However what if a is of type (numpy.int32, numpy.float64), how would I > declare it using numpy.ndaray? >
Use a struct as the data type. Look in proceedings of SciPy 2009 conference. Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
