From 938d29830142b1eecc9296668c0d55adf4aaf858 Mon Sep 17 00:00:00 2001
From: Justin Carpentier <justin.carpentier@inria.fr>
Date: Sat, 10 Feb 2024 17:31:32 +0100
Subject: [PATCH] decompositions: use EigenBaseVisitor

---
 .../eigenpy/decompositions/sparse/SimplicialCholesky.hpp    | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/include/eigenpy/decompositions/sparse/SimplicialCholesky.hpp b/include/eigenpy/decompositions/sparse/SimplicialCholesky.hpp
index adb4ea4b..c3f003da 100644
--- a/include/eigenpy/decompositions/sparse/SimplicialCholesky.hpp
+++ b/include/eigenpy/decompositions/sparse/SimplicialCholesky.hpp
@@ -6,6 +6,7 @@
 #define __eigenpy_decomposition_sparse_simplicial_cholesky_hpp__
 
 #include "eigenpy/eigenpy.hpp"
+#include "eigenpy/eigen/EigenBase.hpp"
 
 #include <Eigen/SparseCholesky>
 
@@ -35,10 +36,7 @@ struct SimplicialCholeskyVisitor
            "This function is particularly useful when solving for several "
            "problems having the same structure.")
 
-        .def("cols", &Solver::cols, bp::arg("self"),
-             "Returns the number of columns.")
-        .def("rows", &Solver::rows, bp::arg("self"),
-             "Returns the number of rows.")
+        .def(EigenBaseVisitor<Solver>())
 
         .def("matrixL", &matrixL, bp::arg("self"),
              "Returns the lower triangular matrix L.")
-- 
GitLab