py_sortrows.cpp 503 B

1234567891011121314151617181920212223
  1. m.def("sortrows", []
  2. (
  3. const Eigen::MatrixXd& X,
  4. const bool ascending,
  5. Eigen::MatrixXd& Y,
  6. Eigen::MatrixXi& I
  7. )
  8. {
  9. return igl::sortrows(X,ascending,Y,I);
  10. }, __doc_igl_sortrows,
  11. py::arg("X"), py::arg("ascending"), py::arg("Y"), py::arg("I"));
  12. m.def("sortrows", []
  13. (
  14. const Eigen::MatrixXi& X,
  15. const bool ascending,
  16. Eigen::MatrixXi& Y,
  17. Eigen::MatrixXi& I
  18. )
  19. {
  20. return igl::sortrows(X,ascending,Y,I);
  21. }, __doc_igl_sortrows,
  22. py::arg("X"), py::arg("ascending"), py::arg("Y"), py::arg("I"));