[Numpy-discussion] PyArray_AsCArray (cfunction, in Array API) in Numpy User Guide
Takafumi Arakaki
aka.tkf@gmail....
Sun Sep 20 19:02:39 CDT 2009
Hi,
Is the definition and explanation of PyArray_AsCArray in Numpy User
Guide up-to-date?
In the guide, it's like this:
int PyArray_AsCArray(PyObject** op, void* ptr, npy_intp* dims, int nd,
int typenum, int itemsize)
(http://docs.scipy.org/doc/numpy/reference/c-api.array.html?highlight=pyarray_ascarray#PyArray_AsCArray)
But in the source code:
int PyArray_AsCArray(PyObject **op, void *ptr, intp *dims, int nd,
PyArray_Descr* typedescr)
(http://projects.scipy.org/numpy/browser/tags/1.3.0/numpy/core/src/multiarraymodule.c)
I think the code in the guide is from old source code. I found the
same code in v0.6.1:
(http://projects.scipy.org/numpy/browser/tags/0.6.1/scipy/base/src/multiarraymodule.c)
Please tell me how to use PyArray_AsCArray if anyone know.
Thanks,
Takafumi
More information about the NumPy-Discussion
mailing list