oldnumeric.h 680 B

1234567891011121314151617181920212223
  1. #include "arrayobject.h"
  2. #ifndef REFCOUNT
  3. # define REFCOUNT NPY_REFCOUNT
  4. # define MAX_ELSIZE 16
  5. #endif
  6. #define PyArray_UNSIGNED_TYPES
  7. #define PyArray_SBYTE NPY_BYTE
  8. #define PyArray_CopyArray PyArray_CopyInto
  9. #define _PyArray_multiply_list PyArray_MultiplyIntList
  10. #define PyArray_ISSPACESAVER(m) NPY_FALSE
  11. #define PyScalarArray_Check PyArray_CheckScalar
  12. #define CONTIGUOUS NPY_CONTIGUOUS
  13. #define OWN_DIMENSIONS 0
  14. #define OWN_STRIDES 0
  15. #define OWN_DATA NPY_OWNDATA
  16. #define SAVESPACE 0
  17. #define SAVESPACEBIT 0
  18. #undef import_array
  19. #define import_array() { if (_import_array() < 0) {PyErr_Print(); PyErr_SetString(PyExc_ImportError, "numpy.core.multiarray failed to import"); } }