Sebastian Berg
2015-08-13 18:34:24 UTC
Hey,
just for hacking/testing, I tried to add to shape.c:
/*NUMPY_API
*
* Checks if memory overlap exists
*/
NPY_NO_EXPORT int
PyArray_ArraysShareMemory(PyArrayObject *arr1, PyArrayObject *arr2, int
work) {
return solve_may_share_memory(arr1, arr2, work);
}
and to numpy_api.py:
# End 1.10 API
'PyArray_ArraysShareMemory': (301,),
But I am getting the error:
File "numpy/core/code_generators/generate_numpy_api.py", line 230, in
do_generate_api
(len(multiarray_api_dict), len(multiarray_api_index)))
AssertionError: Multiarray API size mismatch 301 302
It is puzzling me, so anyone got a quick idea?
- Sebastian
just for hacking/testing, I tried to add to shape.c:
/*NUMPY_API
*
* Checks if memory overlap exists
*/
NPY_NO_EXPORT int
PyArray_ArraysShareMemory(PyArrayObject *arr1, PyArrayObject *arr2, int
work) {
return solve_may_share_memory(arr1, arr2, work);
}
and to numpy_api.py:
# End 1.10 API
'PyArray_ArraysShareMemory': (301,),
But I am getting the error:
File "numpy/core/code_generators/generate_numpy_api.py", line 230, in
do_generate_api
(len(multiarray_api_dict), len(multiarray_api_index)))
AssertionError: Multiarray API size mismatch 301 302
It is puzzling me, so anyone got a quick idea?
- Sebastian