Browse Source

try to fix python errors

Former-commit-id: 56dd532f104e2ae53bcca08d43e58ae1d6f878d3
Alec Jacobson 7 years ago
parent
commit
94028e5dba
2 changed files with 24 additions and 24 deletions
  1. 0 24
      python/py_igl/py_unique.cpp
  2. 24 0
      python/py_igl/py_unique_rows.cpp

+ 0 - 24
python/py_igl/py_unique.cpp

@@ -20,18 +20,6 @@ m.def("unique", []
 }, __doc_igl_unique,
 py::arg("A"), py::arg("C"));
 
-m.def("unique_rows", []
-(
-  const Eigen::MatrixXd& A,
-  Eigen::MatrixXd& C,
-  Eigen::MatrixXi& IA,
-  Eigen::MatrixXi& IC
-)
-{
-  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<double> & A,
@@ -80,18 +68,6 @@ m.def("unique", []
 }, __doc_igl_unique,
 py::arg("A"), py::arg("C"));
 
-m.def("unique_rows", []
-(
-  const Eigen::MatrixXi& A,
-  Eigen::MatrixXi& C,
-  Eigen::MatrixXi& IA,
-  Eigen::MatrixXi& IC
-)
-{
-  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,

+ 24 - 0
python/py_igl/py_unique_rows.cpp

@@ -0,0 +1,24 @@
+m.def("unique_rows", []
+(
+  const Eigen::MatrixXd& A,
+  Eigen::MatrixXd& C,
+  Eigen::MatrixXi& IA,
+  Eigen::MatrixXi& IC
+)
+{
+  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_rows", []
+(
+  const Eigen::MatrixXi& A,
+  Eigen::MatrixXi& C,
+  Eigen::MatrixXi& IA,
+  Eigen::MatrixXi& IC
+)
+{
+  return igl::unique_rows(A,C,IA,IC);
+}, __doc_igl_unique,
+py::arg("A"), py::arg("C"), py::arg("IA"), py::arg("IC"));
+