Let's consider the following simple example:
def add(double a, double b):
cdef double c
c = a + b
return c
How can I define it such that the inputs a and b (and the outputc as a consequence) might be double or np.array?
Thanks a lot!