Why not do as it says instead?
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
/* Or: NPY_NO_DEPRECATED_API NPY_API_VERSION */
#include
#include
Sturla
On 17/08/15 13:11, Florian Lindner wrote:
> Hello,
>
> I try to converse a piece of C code to the new NumPy API to get rid of the
> de
Hello,
I try to converse a piece of C code to the new NumPy API to get rid of the
deprecation warning.
#warning "Using deprecated NumPy API, disable it by " "#defining
NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
As a first step I replaced arrayobject.h by numpy/npy_math.h:
#include
#include