summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2007-12-26 23:04:04 +0000
committerTravis Oliphant <oliphant@enthought.com>2007-12-26 23:04:04 +0000
commit80db3b32f2d5532bdd8bc8f66ce2103bd4e64ea1 (patch)
tree4d0a9fd32a411fe2e5bd2a5b5b090b6ba8ceccbb /numpy/core
parent87f61abda82e21fc77facd3931e0182dd564c3a0 (diff)
downloadnumpy-80db3b32f2d5532bdd8bc8f66ce2103bd4e64ea1.tar.gz
Fix packbits and unpackbits for new io in numpy.
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/code_generators/multiarray_api_order.txt1
-rw-r--r--numpy/core/src/arrayobject.c8
2 files changed, 8 insertions, 1 deletions
diff --git a/numpy/core/code_generators/multiarray_api_order.txt b/numpy/core/code_generators/multiarray_api_order.txt
index 03a75a576..805d12709 100644
--- a/numpy/core/code_generators/multiarray_api_order.txt
+++ b/numpy/core/code_generators/multiarray_api_order.txt
@@ -81,3 +81,4 @@ _PyArray_GetSigintBuf
PyArray_DescrAlignConverter
PyArray_DescrAlignConverter2
PyArray_SearchsideConverter
+PyArray_CheckAxis
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c
index fe9d67252..d93f82bd0 100644
--- a/numpy/core/src/arrayobject.c
+++ b/numpy/core/src/arrayobject.c
@@ -4832,8 +4832,12 @@ array_richcompare(PyArrayObject *self, PyObject *other, int cmp_op)
return result;
}
+
+/*MULTIARRAY_API
+ PyArray_CheckAxis
+*/
static PyObject *
-_check_axis(PyArrayObject *arr, int *axis, int flags)
+PyArray_CheckAxis(PyArrayObject *arr, int *axis, int flags)
{
PyObject *temp1, *temp2;
int n = arr->nd;
@@ -4875,6 +4879,8 @@ _check_axis(PyArrayObject *arr, int *axis, int flags)
return temp2;
}
+#define _check_axis PyArray_CheckAxis
+
#include "arraymethods.c"
/* Lifted from numarray */