summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.h
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-04-30 08:35:40 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-04-30 08:35:40 +0000
commit44ff04765d36fe39859452aace91480f74292905 (patch)
tree5386eb4d55b3ec16015ca047210e5900d3358d50 /numpy/core/src/arrayobject.h
parent64aa641a8a17097bfd7fbc686245eb5970ef21bd (diff)
downloadnumpy-44ff04765d36fe39859452aace91480f74292905.tar.gz
Put array iterator code in separate source file.
Diffstat (limited to 'numpy/core/src/arrayobject.h')
-rw-r--r--numpy/core/src/arrayobject.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/numpy/core/src/arrayobject.h b/numpy/core/src/arrayobject.h
index b4fd76490..bedbf6223 100644
--- a/numpy/core/src/arrayobject.h
+++ b/numpy/core/src/arrayobject.h
@@ -48,6 +48,12 @@ extern NPY_NO_EXPORT PyArray_Descr **userdescrs;
#define error_converting(x) (((x) == -1) && PyErr_Occurred())
+#define SOBJ_NOTFANCY 0
+#define SOBJ_ISFANCY 1
+#define SOBJ_BADARRAY 2
+#define SOBJ_TOOMANY 3
+#define SOBJ_LISTTUP 4
+
NPY_NO_EXPORT int
_flat_copyinto(PyObject *dst, PyObject *src, NPY_ORDER order);
@@ -103,6 +109,12 @@ add_new_axes_0d(PyArrayObject *, int);
NPY_NO_EXPORT int
count_new_axes_0d(PyObject *tuple);
+NPY_NO_EXPORT PyObject *
+array_richcompare(PyArrayObject *self, PyObject *other, int cmp_op);
+
+NPY_NO_EXPORT PyObject *
+array_subscript_simple(PyArrayObject *self, PyObject *op);
+
/* FIXME: this is defined in multiarraymodule.c ... */
NPY_NO_EXPORT PyObject *
__New_PyArray_Std(PyArrayObject *self, int axis, int rtype, PyArrayObject *out,