Skip to content

Commit

Permalink
Add missing includes for PyArray_DIM
Browse files Browse the repository at this point in the history
  • Loading branch information
a-andre committed Aug 16, 2024
1 parent 669d68f commit c458fb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cylp/cpp/IClpSimplex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include "IClpPackedMatrix.hpp"
#include "OsiClpSolverInterface.hpp"
#include <sstream>
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include <numpy/ndarraytypes.h>

int IClpSimplex::argWeightedMax(PyObject* arr, PyObject* arr_ind, PyObject* w, PyObject* w_ind){
//_import_array();
Expand Down
3 changes: 3 additions & 0 deletions cylp/cpp/ICoinIndexedVector.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include "ICoinIndexedVector.hpp"

#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include <numpy/ndarraytypes.h>

ICoinIndexedVector::ICoinIndexedVector(){
_import_array();
}
Expand Down

0 comments on commit c458fb4

Please sign in to comment.