numpy 2.0.0
include/numpy/oldnumeric.h
Go to the documentation of this file.
00001 #include "arrayobject.h"
00002 
00003 #ifndef REFCOUNT
00004 #  define REFCOUNT NPY_REFCOUNT
00005 #  define MAX_ELSIZE 16
00006 #endif
00007 
00008 #define PyArray_UNSIGNED_TYPES
00009 #define PyArray_SBYTE PyArray_BYTE
00010 #define PyArray_CopyArray PyArray_CopyInto
00011 #define _PyArray_multiply_list PyArray_MultiplyIntList
00012 #define PyArray_ISSPACESAVER(m) NPY_FALSE
00013 #define PyScalarArray_Check PyArray_CheckScalar
00014 
00015 #define CONTIGUOUS NPY_CONTIGUOUS
00016 #define OWN_DIMENSIONS 0
00017 #define OWN_STRIDES 0
00018 #define OWN_DATA NPY_OWNDATA
00019 #define SAVESPACE 0
00020 #define SAVESPACEBIT 0
00021 
00022 #undef import_array
00023 #define import_array() { if (_import_array() < 0) {PyErr_Print(); PyErr_SetString(PyExc_ImportError, "numpy.core.multiarray failed to import"); } }