Finalized tutorial 701, added missing template

This commit is contained in:
koch
2016-06-22 16:03:01 +02:00
parent efcf06b7dc
commit 63ef13a583
4 changed files with 6 additions and 13 deletions
+1 -1
View File
@@ -149,11 +149,11 @@ py::class_<Type> bind_eigen_2(py::module &m, const char *name,
.def("mean", [](const Type &m) {return m.mean();})
.def("sum", [](const Type &m) {return m.sum();})
.def("square", [](const Type &m) {return m.array().square();})
.def("prod", [](const Type &m) {return m.prod();})
.def("trace", [](const Type &m) {return m.trace();})
.def("norm", [](const Type &m) {return m.norm();})
.def("squaredNorm", [](const Type &m) {return m.squaredNorm();})
.def("squaredMean", [](const Type &m) {return m.array().square().mean();})
.def("minCoeff", [](const Type &m) {return m.minCoeff();} )
.def("maxCoeff", [](const Type &m) {return m.maxCoeff();} )