diff options
author | David Cournapeau <cournape@gmail.com> | 2009-04-30 08:37:38 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-04-30 08:37:38 +0000 |
commit | 2c1ac5440c3ab4d673498124c0e7608c4b3c5c1c (patch) | |
tree | 1ee20acd441a61b828e0334314a514f0925b3195 /numpy/core/src/arraymethods.c | |
parent | 98389353b020db90e90e00da4bdf19e18f942cba (diff) | |
download | numpy-2c1ac5440c3ab4d673498124c0e7608c4b3c5c1c.tar.gz |
Put array methods in separate file.
Diffstat (limited to 'numpy/core/src/arraymethods.c')
-rw-r--r-- | numpy/core/src/arraymethods.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/numpy/core/src/arraymethods.c b/numpy/core/src/arraymethods.c index 794b4e761..9d1f27fde 100644 --- a/numpy/core/src/arraymethods.c +++ b/numpy/core/src/arraymethods.c @@ -1,3 +1,16 @@ +#define PY_SSIZE_T_CLEAN +#include <Python.h> +#include "structmember.h" + +#define _MULTIARRAYMODULE +#define NPY_NO_PREFIX +#include "numpy/arrayobject.h" +#include "numpy/arrayscalars.h" + +#include "arrayobject.h" + +#include "arraymethods.h" + /* Should only be used if x is known to be an nd-array */ #define _ARET(x) PyArray_Return((PyArrayObject *)(x)) @@ -1264,14 +1277,6 @@ array_reduce(PyArrayObject *self, PyObject *NPY_UNUSED(args)) return ret; } - - -static size_t _array_fill_strides(intp *, intp *, int, size_t, int, int *); - -static int _IsAligned(PyArrayObject *); - -static PyArray_Descr * _array_typedescr_fromstr(char *); - static PyObject * array_setstate(PyArrayObject *self, PyObject *args) { @@ -1934,9 +1939,6 @@ array_round(PyArrayObject *self, PyObject *args, PyObject *kwds) -static int _IsAligned(PyArrayObject *); -static Bool _IsWriteable(PyArrayObject *); - static PyObject * array_setflags(PyArrayObject *self, PyObject *args, PyObject *kwds) { @@ -2020,7 +2022,7 @@ array_newbyteorder(PyArrayObject *self, PyObject *args) } -static PyMethodDef array_methods[] = { +NPY_NO_EXPORT PyMethodDef array_methods[] = { /* for subtypes */ {"__array__", (PyCFunction)array_getarray, |