Skip to content
Snippets Groups Projects
Commit 451981a9 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

python : macro to support numpy < 1.7

parent cfc267ee
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,8 @@
%#include <numpy/arrayobject.h>
%#if NPY_API_VERSION < 0x00000007
%#define NPY_ARRAY_FARRAY NPY_FARRAY
%#define NPY_ARRAY_F_CONTIGUOUS NPY_F_CONTIGUOUS
%#define PyArray_SetBaseObject(a, b) PyArray_BASE(a) = b
%#endif
%#endif
fullMatrix<double> *pySequenceToFullMatrixDouble(PyObject *o) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment