Skip to content

Commit f53d54d

Browse files
authored
Merge pull request #186 from gleichdick/master
Fix LLT with current Eigen master branch
2 parents d279a09 + 8ab8f57 commit f53d54d

File tree

1 file changed

+6
-1
lines changed
  • include/eigenpy/decompositions

1 file changed

+6
-1
lines changed

include/eigenpy/decompositions/LLT.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,14 @@ namespace eigenpy
4444
.def("matrixLLT",&Solver::matrixLLT,bp::arg("self"),
4545
"Returns the LLT decomposition matrix.",
4646
bp::return_internal_reference<>())
47-
47+
48+
#if EIGEN_VERSION_AT_LEAST(3,3,90)
49+
.def("rankUpdate",(Solver& (Solver::*)(const VectorType &, const RealScalar &))&Solver::template rankUpdate<VectorType>,
50+
bp::args("self","vector","sigma"), bp::return_self<>())
51+
#else
4852
.def("rankUpdate",(Solver (Solver::*)(const VectorType &, const RealScalar &))&Solver::template rankUpdate<VectorType>,
4953
bp::args("self","vector","sigma"))
54+
#endif
5055

5156
#if EIGEN_VERSION_AT_LEAST(3,3,0)
5257
.def("adjoint",&Solver::adjoint,bp::arg("self"),

0 commit comments

Comments
 (0)