C API function to get the shape of an array ?
23 Jul
2005
23 Jul
'05
9:13 a.m.
Hi, 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: PyArrayObject* a; if (a->nd == 2) { if (a->dimensions[0] == m && b->dimensions[1] == n) ... Is this the intended way ? I hope not... Best, Soeren
7103
Age (days ago)
7103
Last active (days ago)
0 comments
1 participants
participants (1)
-
Soeren Sonnenburg