summaryrefslogtreecommitdiff
path: root/numpy/core/src/arraynumber.h
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-04-30 08:36:59 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-04-30 08:36:59 +0000
commit91be9a9ace3e532a40a93f0c00d71fa34adce009 (patch)
tree169eb7afcec9ec2447b17cad6535bd49561d873d /numpy/core/src/arraynumber.h
parentefd5b424216fb0ce6aa3c7529d8c3e1d5ae34116 (diff)
downloadnumpy-91be9a9ace3e532a40a93f0c00d71fa34adce009.tar.gz
Put number protocol and array attributes get/set in separate files.
Diffstat (limited to 'numpy/core/src/arraynumber.h')
-rw-r--r--numpy/core/src/arraynumber.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/numpy/core/src/arraynumber.h b/numpy/core/src/arraynumber.h
new file mode 100644
index 000000000..8c004a198
--- /dev/null
+++ b/numpy/core/src/arraynumber.h
@@ -0,0 +1,19 @@
+#ifndef _NPY_ARRAY_NUMBER_H_
+#define _NPY_ARRAY_NUMBER_H_
+
+extern NPY_NO_EXPORT NumericOps n_ops;
+extern NPY_NO_EXPORT PyNumberMethods array_as_number;
+
+NPY_NO_EXPORT int
+array_any_nonzero(PyArrayObject *mp);
+
+NPY_NO_EXPORT PyObject *
+array_int(PyArrayObject *v);
+
+NPY_NO_EXPORT int
+PyArray_SetNumericOps(PyObject *dict);
+
+NPY_NO_EXPORT PyObject *
+PyArray_GetNumericOps(void);
+
+#endif