[Numpy-discussion] C API function to get the shape of an array ?
python-ml at nn7.de
Sat Jul 23 09:13:16 CDT 2005
I just want to use NA_get1_Int64 etc but I couldn't find a way to
'cleanly' find out about the size of an array, i.e. I always have to
access raw fields in the PyArrayObject structure like:
if (a->nd == 2)
if (a->dimensions == m &&
b->dimensions == n)
Is this the intended way ? I hope not...
More information about the Numpy-discussion