Pythonのnumpy.ndarrays(長さが異なる)のリストがあり、Pythonのそれらに非常に高速にアクセスする必要があります。ポインタの配列でうまくいくと思います。私は試した:
float_type_t* list_of_arrays[no_of_arrays]
for data_array in python_list_of_arrays:
list_of_arrays[0] = data_array
しかし、cythonは不平を言います:
no_of_arrays < Not allowed in a constant expression
この変数を構成するいくつかの方法を試しました。
cdef extern from *:
ctypedef int const_int "const int"
(より創造的な試みがありました)-しかし、残念ながらそれは機能しません。
助けてください。