mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
24 lines
680 B
C
24 lines
680 B
C
|
#include "arrayobject.h"
|
||
|
|
||
|
#ifndef REFCOUNT
|
||
|
# define REFCOUNT NPY_REFCOUNT
|
||
|
# define MAX_ELSIZE 16
|
||
|
#endif
|
||
|
|
||
|
#define PyArray_UNSIGNED_TYPES
|
||
|
#define PyArray_SBYTE NPY_BYTE
|
||
|
#define PyArray_CopyArray PyArray_CopyInto
|
||
|
#define _PyArray_multiply_list PyArray_MultiplyIntList
|
||
|
#define PyArray_ISSPACESAVER(m) NPY_FALSE
|
||
|
#define PyScalarArray_Check PyArray_CheckScalar
|
||
|
|
||
|
#define CONTIGUOUS NPY_CONTIGUOUS
|
||
|
#define OWN_DIMENSIONS 0
|
||
|
#define OWN_STRIDES 0
|
||
|
#define OWN_DATA NPY_OWNDATA
|
||
|
#define SAVESPACE 0
|
||
|
#define SAVESPACEBIT 0
|
||
|
|
||
|
#undef import_array
|
||
|
#define import_array() { if (_import_array() < 0) {PyErr_Print(); PyErr_SetString(PyExc_ImportError, "numpy.core.multiarray failed to import"); } }
|