-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[py] binding of get_connected_subsets and related classes
- Loading branch information
1 parent
3477015
commit eeb6d3d
Showing
9 changed files
with
107 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* \file | ||
* Paving Python binding | ||
* ---------------------------------------------------------------------------- | ||
* \date 2021 | ||
* \author Simon Rohou | ||
* \copyright Copyright 2021 Codac Team | ||
* \license This program is distributed under the terms of | ||
* the GNU Lesser General Public License (LGPL). | ||
*/ | ||
|
||
#include <pybind11/pybind11.h> | ||
#include <pybind11/stl.h> | ||
#include <pybind11/operators.h> | ||
#include <pybind11/functional.h> | ||
|
||
#include "codac_ConnectedSubset.h" | ||
// Generated file from Doxygen XML (doxygen2docstring.py): | ||
#include "codac_py_ConnectedSubset_docs.h" | ||
|
||
using namespace std; | ||
using namespace codac; | ||
namespace py = pybind11; | ||
using namespace pybind11::literals; | ||
|
||
|
||
void export_ConnectedSubset(py::module& m) | ||
{ | ||
py::class_<ConnectedSubset> connectedsubset(m, "ConnectedSubset", CONNECTEDSUBSET_MAIN); | ||
connectedsubset | ||
|
||
.def("get_boxes", &ConnectedSubset::get_boxes, | ||
CONNECTEDSUBSET_VECTORINTERVALVECTOR_GET_BOXES) | ||
|
||
; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/** | ||
* \file | ||
* Paving Python binding | ||
* ---------------------------------------------------------------------------- | ||
* \date 2021 | ||
* \author Simon Rohou | ||
* \copyright Copyright 2021 Codac Team | ||
* \license This program is distributed under the terms of | ||
* the GNU Lesser General Public License (LGPL). | ||
*/ | ||
|
||
#include <pybind11/pybind11.h> | ||
#include <pybind11/stl.h> | ||
#include <pybind11/operators.h> | ||
#include <pybind11/functional.h> | ||
|
||
#include "codac_SIVIAPaving.h" | ||
// Generated file from Doxygen XML (doxygen2docstring.py): | ||
#include "codac_py_SIVIAPaving_docs.h" | ||
|
||
using namespace std; | ||
using namespace codac; | ||
namespace py = pybind11; | ||
using namespace pybind11::literals; | ||
|
||
|
||
void export_SIVIAPaving(py::module& m) | ||
{ | ||
py::class_<SIVIAPaving,Paving> paving(m, "SIVIAPaving", SIVIAPAVING_MAIN); | ||
paving | ||
|
||
.def(py::init<const IntervalVector&>(), | ||
SIVIAPAVING_SIVIAPAVING_INTERVALVECTOR) | ||
|
||
.def("compute", (void (SIVIAPaving::*)(const Function&,const IntervalVector&,float))&SIVIAPaving::compute, | ||
SIVIAPAVING_VOID_COMPUTE_FUNCTION_INTERVALVECTOR_FLOAT, | ||
"f"_a, "y"_a, "precision"_a) | ||
|
||
.def("compute", (void (SIVIAPaving::*)(Ctc&,float))&SIVIAPaving::compute, | ||
SIVIAPAVING_VOID_COMPUTE_CTC_FLOAT, | ||
"ctc"_a, "precision"_a) | ||
|
||
.def("compute", (void (SIVIAPaving::*)(ibex::Sep&,float))&SIVIAPaving::compute, | ||
SIVIAPAVING_VOID_COMPUTE_SEP_FLOAT, | ||
"sep"_a, "precision"_a) | ||
; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters