pgarrinter.h 908 B

1234567891011121314151617181920
  1. /* array structure interface version 3 declarations */
  2. const int PAI_CONTIGUOUS = 0x01;
  3. const int PAI_FORTRAN = 0x02;
  4. const int PAI_ALIGNED = 0x100;
  5. const int PAI_NOTSWAPPED = 0x200;
  6. const int PAI_WRITEABLE = 0x400;
  7. typedef struct {
  8. int two; /* contains the integer 2 -- simple sanity check */
  9. int nd; /* number of dimensions */
  10. char typekind; /* kind in array -- character code of typestr */
  11. int itemsize; /* size of each element */
  12. int flags; /* flags indicating how the data should be */
  13. /* interpreted */
  14. Py_intptr_t *shape; /* A length-nd array of shape information */
  15. Py_intptr_t *strides; /* A length-nd array of stride information */
  16. void *data; /* A pointer to the first element of the array */
  17. PyObject *descr; /* NULL or a data-description */
  18. } PyArrayInterface;