Hello,

I've tried to write a small function to merge two Numpy arrays of strings with 
Cython.

I need to use efficient indexing. What I've done for array of integers :

import numpy as np
cimport numpy as np
ctypedef np.int_t DTYPE_t
cdef np.ndarray[DTYPE_t, ndim=1] vecteur_n = np.zeros(vecteur.shape[0], 
dtype=int)
...

But I don't know the equivalent of "ctypedef np.int_t DTYPE_t" for strings, or 
at least a way of getting around this.

Thank you for the help,

JB


      
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to