/ lib / numpy / core / include / numpy / oldnumeric.h
oldnumeric.h
 1  #ifndef NUMPY_CORE_INCLUDE_NUMPY_OLDNUMERIC_H_
 2  #define NUMPY_CORE_INCLUDE_NUMPY_OLDNUMERIC_H_
 3  
 4  /* FIXME -- this file can be deleted? */
 5  
 6  #include "arrayobject.h"
 7  
 8  #ifndef PYPY_VERSION
 9  #ifndef REFCOUNT
10  #  define REFCOUNT NPY_REFCOUNT
11  #  define MAX_ELSIZE 16
12  #endif
13  #endif
14  
15  #define PyArray_UNSIGNED_TYPES
16  #define PyArray_SBYTE NPY_BYTE
17  #define PyArray_CopyArray PyArray_CopyInto
18  #define _PyArray_multiply_list PyArray_MultiplyIntList
19  #define PyArray_ISSPACESAVER(m) NPY_FALSE
20  #define PyScalarArray_Check PyArray_CheckScalar
21  
22  #define CONTIGUOUS NPY_CONTIGUOUS
23  #define OWN_DIMENSIONS 0
24  #define OWN_STRIDES 0
25  #define OWN_DATA NPY_OWNDATA
26  #define SAVESPACE 0
27  #define SAVESPACEBIT 0
28  
29  #undef import_array
30  #define import_array() { if (_import_array() < 0) {PyErr_Print(); PyErr_SetString(PyExc_ImportError, "numpy.core.multiarray failed to import"); } }
31  
32  #endif  /* NUMPY_CORE_INCLUDE_NUMPY_OLDNUMERIC_H_ */