Skip to content

Commit 6343cde

Browse files
committed
decompositions: fixe return type of LDLT::rankUpdate
1 parent aea8f37 commit 6343cde

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/eigenpy/decompositions/LDLT.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ namespace eigenpy
5454
"Returns the LDLT decomposition matrix.",
5555
bp::return_value_policy<bp::return_by_value>())
5656

57-
.def("rankUpdate",(Solver (Solver::*)(const Eigen::MatrixBase<VectorType> &, const RealScalar &))&Solver::template rankUpdate<VectorType>,
58-
bp::args("self","vector","sigma"))
57+
.def("rankUpdate",(Solver & (Solver::*)(const Eigen::MatrixBase<VectorType> &, const RealScalar &))&Solver::template rankUpdate<VectorType>,
58+
bp::args("self","vector","sigma"),
59+
bp::return_value_policy<bp::reference_existing_object>())
5960

6061
#if EIGEN_VERSION_AT_LEAST(3,2,90)
6162
.def("adjoint",&Solver::adjoint,bp::arg("self"),

0 commit comments

Comments
 (0)