Passing 3-dimensional numpy array to C

前端 未结 4 1012
旧巷少年郎
旧巷少年郎 2021-02-01 09:43

I\'m writing a C extension to my Python program for speed purposes, and running into some very strange behaviour trying to pass in a 3-dimensional numpy array. It works with a 2

4条回答
  •  悲哀的现实
    2021-02-01 10:34

    There was a bug in the numpy C-API, that should be fixed now:

    https://github.com/numpy/numpy/pull/5314

提交回复
热议问题