Finalized tutorial 701, added missing template
Former-commit-id: 63ef13a583
This commit is contained in:
@@ -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();} )
|
||||
|
||||
Reference in New Issue
Block a user