blob: 0b9b712fe635b170948b306a070e3a436938fa32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef _NPY_ARRAYMAPPING_H_
#define _NPY_ARRAYMAPPING_H_
extern NPY_NO_EXPORT PyMappingMethods array_as_mapping;
NPY_NO_EXPORT Py_ssize_t
array_length(PyArrayObject *self);
NPY_NO_EXPORT PyObject *
array_item_nice(PyArrayObject *self, Py_ssize_t i);
NPY_NO_EXPORT PyObject *
array_subscript(PyArrayObject *self, PyObject *op);
NPY_NO_EXPORT int
array_ass_big_item(PyArrayObject *self, intp i, PyObject *v);
#if PY_VERSION_HEX < 0x02050000
#if SIZEOF_INT == SIZEOF_INTP
#define array_ass_item array_ass_big_item
#endif
#else
#if SIZEOF_SIZE_T == SIZEOF_INTP
#define array_ass_item array_ass_big_item
#endif
#endif
#ifndef array_ass_item
NPY_NO_EXPORT int
array_ass_item(PyArrayObject *self, Py_ssize_t i, PyObject *v)
{
return array_ass_big_item(self, (intp) i, v);
}
#endif
#endif
|