Hi,
I'm using a C api to create numpy array
I create them in my C as follow:
np_ow = (PyArrayObject *)PyArray_SimpleNew(4, dims, NPY_DOUBLE);
np_osfc = (PyArrayObject *)PyArray_SimpleNew(3, dims, NPY_DOUBLE);
np_ospc = (PyArrayObject *)PyArray_SimpleNew(3, dims, NPY_DOUBLE);
I think i can answer my own question
I need to return Py_BuildValue((NNN))
C.
On Jul 15, 2009, at 4:27 PM, Charles سمير Doutriaux wrote:
Hi,
I'm using a C api to create numpy array
I create them in my C as follow:
np_ow = (PyArrayObject *)PyArray_SimpleNew(4, dims, NPY_DOUBLE);