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
+3
View File
@@ -86,6 +86,9 @@ py::class_<Type> bind_eigen_2(py::module &m, const char *name,
.def("norm", [](const Type &m) {return m.norm();})
.def("squaredNorm", [](const Type &m) {return m.squaredNorm();})
.def("castdouble", [](const Type &m) {return Eigen::MatrixXd(m.template cast<double>());})
.def("castint", [](const Type &m) {return Eigen::MatrixXi(m.template cast<int>());})
/* Component-wise operations */
.def("cwiseAbs", &Type::cwiseAbs)
.def("cwiseAbs2", &Type::cwiseAbs2)