We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d22db3 commit 1097860Copy full SHA for 1097860
src/htool/solver/solver.hpp
@@ -3,6 +3,7 @@
3
4
#include "htool/solvers/ddm.hpp"
5
#include <pybind11/stl.h>
6
+#include <pybind11/iostream.h>
7
#include <string>
8
9
namespace py = pybind11;
@@ -48,7 +49,10 @@ void declare_DDM(py::module &m, const std::string &className) {
48
49
// LCOV_EXCL_STOP
50
}
51
- self.solve(b.data(), x.mutable_data(), mu);
52
+ {
53
+ py::scoped_ostream_redirect stream(std::cout, py::module_::import("sys").attr("stdout"));
54
+ self.solve(b.data(), x.mutable_data(), mu);
55
+ }
56
},
57
py::arg("x").noconvert(true),
58
py::arg("b"),
0 commit comments