I defined a extension types with an array and a float number. But it goes wrong when I try to compile it: Cannot convert Python object argument to type 'float *'. It seems that I couldn't pass a pointer to constructor. Is there any solution to avoid this problem?
cdef class Particle(object):
cdef float pos[3]
cdef float D
def __init__(self,float pos[3],float D):
self.pos=pos
self.D=D