How to convert python array to cython array?

后端 未结 5 839
失恋的感觉
失恋的感觉 2020-12-17 22:14

I have an array of float values that is created in regular Python, that I want to pass to a cython function that fronts for an underlying C function. The C function requires

5条回答
  •  一向
    一向 (楼主)
    2020-12-17 22:33

    Check out http://docs.cython.org/src/userguide/memoryviews.html. Looks like it also gives tips on how to utilize Python's built-in array module, as well as numpy.

提交回复
热议问题