Skip to content

Commit 0bb71c7

Browse files
committed
decompositions: fix compatibility issus with Eigen > 4
1 parent ba38116 commit 0bb71c7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

include/eigenpy/decompositions/GeneralizedEigenSolver.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ struct GeneralizedEigenSolverVisitor
4040
"Returns the computed generalized eigenvalues.")
4141

4242
.def("alphas", &Solver::alphas, bp::arg("self"),
43-
"Returns the vectors containing the alpha values. ")
43+
"Returns the vectors containing the alpha values. ",
44+
bp::return_value_policy<bp::return_by_value>())
4445
.def("betas", &Solver::betas, bp::arg("self"),
45-
"Returns the vectors containing the beta values. ")
46+
"Returns the vectors containing the beta values. ",
47+
bp::return_value_policy<bp::return_by_value>())
4648

4749
.def("compute",
4850
&GeneralizedEigenSolverVisitor::compute_proxy<MatrixType>,

0 commit comments

Comments
 (0)