From c458fb4b2798d37e15e282ba413915f15949cd60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= Date: Fri, 16 Aug 2024 16:53:21 +0200 Subject: [PATCH] Add missing includes for PyArray_DIM --- cylp/cpp/IClpSimplex.cpp | 2 ++ cylp/cpp/ICoinIndexedVector.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/cylp/cpp/IClpSimplex.cpp b/cylp/cpp/IClpSimplex.cpp index 93861222..c0733440 100644 --- a/cylp/cpp/IClpSimplex.cpp +++ b/cylp/cpp/IClpSimplex.cpp @@ -7,6 +7,8 @@ #include "IClpPackedMatrix.hpp" #include "OsiClpSolverInterface.hpp" #include +#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION +#include int IClpSimplex::argWeightedMax(PyObject* arr, PyObject* arr_ind, PyObject* w, PyObject* w_ind){ //_import_array(); diff --git a/cylp/cpp/ICoinIndexedVector.cpp b/cylp/cpp/ICoinIndexedVector.cpp index af4c352d..34540b9c 100644 --- a/cylp/cpp/ICoinIndexedVector.cpp +++ b/cylp/cpp/ICoinIndexedVector.cpp @@ -1,5 +1,8 @@ #include "ICoinIndexedVector.hpp" +#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION +#include + ICoinIndexedVector::ICoinIndexedVector(){ _import_array(); }