From c2dbb7cc15d315232cd2bdae204f4d9b8cd199e0 Mon Sep 17 00:00:00 2001 From: SimonRohou Date: Tue, 17 Oct 2023 19:16:49 +0200 Subject: [PATCH] [py] binding for CtcCN --- python/CMakeLists.txt | 1 + python/codac_py_core.cpp | 2 ++ src/core/cn/codac_Variable.h | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 680ce863..a8aa2a1c 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -57,6 +57,7 @@ src/core/contractors/static/codac_py_Ctc.cpp src/core/contractors/static/codac_py_CtcBox.cpp + src/core/contractors/static/codac_py_CtcCN.cpp src/core/contractors/static/codac_py_CtcCartProd.cpp src/core/contractors/static/codac_py_CtcDist.cpp src/core/contractors/static/codac_py_CtcFunction.cpp diff --git a/python/codac_py_core.cpp b/python/codac_py_core.cpp index 49b11189..b80934a2 100644 --- a/python/codac_py_core.cpp +++ b/python/codac_py_core.cpp @@ -33,6 +33,7 @@ void export_IntervalVectorVar(py::module& m); py::class_ export_Ctc(py::module& m); void export_CtcBox(py::module& m, py::class_& ctc); +void export_CtcCN(py::module& m, py::class_& ctc); void export_CtcCartProd(py::module& m, py::class_& ctc); void export_CtcDist(py::module& m, py::class_& ctc); void export_CtcFunction(py::module& m, py::class_& ctc); @@ -100,6 +101,7 @@ PYBIND11_MODULE(core, m) py::class_ ctc = export_Ctc(m); export_CtcBox(m, ctc); + export_CtcCN(m, ctc); export_CtcCartProd(m, ctc); export_CtcDist(m, ctc); export_CtcFunction(m, ctc); diff --git a/src/core/cn/codac_Variable.h b/src/core/cn/codac_Variable.h index 386c2efd..36af7641 100644 --- a/src/core/cn/codac_Variable.h +++ b/src/core/cn/codac_Variable.h @@ -62,7 +62,7 @@ namespace codac IntervalVectorVar(int n) : IntervalVector(n) { - + } /**