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