Update vector binding to work with new pybind11

This commit is contained in:
skoch
2017-02-14 18:50:58 +01:00
parent d1a22e9d39
commit 9bfa4df107
7 changed files with 118 additions and 115 deletions
+30 -31
View File
@@ -1,25 +1,3 @@
m.def("unique", []
(
const std::vector<double> & A,
std::vector<double> & C,
std::vector<size_t> & IA,
std::vector<size_t> & IC
)
{
return igl::unique(A,C,IA,IC);
}, __doc_igl_unique,
py::arg("A"), py::arg("C"), py::arg("IA"), py::arg("IC"));
m.def("unique", []
(
const std::vector<double> & A,
std::vector<double> & C
)
{
return igl::unique(A,C);
}, __doc_igl_unique,
py::arg("A"), py::arg("C"));
m.def("unique", []
(
const Eigen::MatrixXd& A,
@@ -54,15 +32,10 @@ m.def("unique_rows", []
}, __doc_igl_unique,
py::arg("A"), py::arg("C"), py::arg("IA"), py::arg("IC"));
// int
m.def("unique", []
(
const std::vector<int> & A,
std::vector<int> & C,
const std::vector<double> & A,
std::vector<double> & C,
std::vector<size_t> & IA,
std::vector<size_t> & IC
)
@@ -73,14 +46,18 @@ py::arg("A"), py::arg("C"), py::arg("IA"), py::arg("IC"));
m.def("unique", []
(
const std::vector<int> & A,
std::vector<int> & C
const std::vector<double> & A,
std::vector<double> & C
)
{
return igl::unique(A,C);
}, __doc_igl_unique,
py::arg("A"), py::arg("C"));
// int
m.def("unique", []
(
const Eigen::MatrixXi& A,
@@ -114,3 +91,25 @@ m.def("unique_rows", []
return igl::unique_rows(A,C,IA,IC);
}, __doc_igl_unique,
py::arg("A"), py::arg("C"), py::arg("IA"), py::arg("IC"));
m.def("unique", []
(
const std::vector<int> & A,
std::vector<int> & C,
std::vector<size_t> & IA,
std::vector<size_t> & IC
)
{
return igl::unique(A,C,IA,IC);
}, __doc_igl_unique,
py::arg("A"), py::arg("C"), py::arg("IA"), py::arg("IC"));
m.def("unique", []
(
const std::vector<int> & A,
std::vector<int> & C
)
{
return igl::unique(A,C);
}, __doc_igl_unique,
py::arg("A"), py::arg("C"));