I want to transform the below python
code in Cython
:
x_array = []
x_array.append(x_new)
I tried the following Cython codes but it gives error:
cdef np.ndarray[double, dim=1] x_array
x_array.append(x_new)
The error shows:
Cannot coerce list to type [double, dim=1]
list