added 302 sort

Former-commit-id: e2e452f556
This commit is contained in:
Daniele Panozzo
2015-09-11 23:53:49 +02:00
parent 50e499e0e9
commit fbb66fc3d8
6 changed files with 193 additions and 0 deletions
+55
View File
@@ -50,3 +50,58 @@ m.def("slice_into", []
return igl::slice_into(X,R,Y);
}, __doc_igl_slice_into,
py::arg("X"), py::arg("R"), py::arg("Y"));
// int
m.def("slice_into", []
(
const Eigen::SparseMatrix<int>& X,
const Eigen::MatrixXi& R,
const Eigen::MatrixXi& C,
Eigen::SparseMatrix<int>& Y
)
{
assert_is_VectorX("R",R);
assert_is_VectorX("C",C);
return igl::slice_into(X,R,C,Y);
}, __doc_igl_slice_into,
py::arg("X"), py::arg("R"), py::arg("C"), py::arg("Y"));
m.def("slice_into", []
(
const Eigen::MatrixXi& X,
const Eigen::MatrixXi& R,
const Eigen::MatrixXi& C,
Eigen::MatrixXi& Y
)
{
assert_is_VectorX("R",R);
assert_is_VectorX("C",C);
return igl::slice_into(X,R,C,Y);
}, __doc_igl_slice_into,
py::arg("X"), py::arg("R"), py::arg("C"), py::arg("Y"));
m.def("slice_into", []
(
const Eigen::MatrixXi& X,
const Eigen::MatrixXi& R,
const int& dim,
Eigen::MatrixXi& Y
)
{
assert_is_VectorX("R",R);
return igl::slice_into(X,R,dim,Y);
}, __doc_igl_slice_into,
py::arg("X"), py::arg("R"), py::arg("dim"), py::arg("Y"));
m.def("slice_into", []
(
const Eigen::MatrixXi& X,
const Eigen::MatrixXi& R,
Eigen::MatrixXi& Y
)
{
assert_is_VectorX("R",R);
return igl::slice_into(X,R,Y);
}, __doc_igl_slice_into,
py::arg("X"), py::arg("R"), py::arg("Y"));