@@ -17,30 +17,35 @@ namespace eigenpy {
1717
1818template <typename _MatrixType>
1919struct GeneralizedSelfAdjointEigenSolverVisitor
20- : public boost::python::def_visitor<GeneralizedSelfAdjointEigenSolverVisitor<_MatrixType>> {
20+ : public boost::python::def_visitor<
21+ GeneralizedSelfAdjointEigenSolverVisitor<_MatrixType>> {
2122 typedef _MatrixType MatrixType;
2223 typedef typename MatrixType::Scalar Scalar;
2324 typedef Eigen::GeneralizedSelfAdjointEigenSolver<MatrixType> Solver;
2425
2526 template <class PyClass >
2627 void visit (PyClass& cl) const {
2728 cl.def (bp::init<>(" Default constructor" ))
28- .def (bp::init<Eigen::DenseIndex>(bp::arg ( " size " ),
29- " Default constructor with memory preallocation. " ))
29+ .def (bp::init<Eigen::DenseIndex>(
30+ bp::arg ( " size " ), " Default constructor with memory preallocation. " ))
3031 .def (bp::init<MatrixType, MatrixType, bp::optional<int >>(
31- bp::args (" matA" , " matB" , " options" ),
32- " Constructor: Computes generalized eigendecomposition of given matrix pencil. " ))
32+ bp::args (" matA" , " matB" , " options" ),
33+ " Constructor: Computes generalized eigendecomposition of given "
34+ " matrix pencil. " ))
3335
34- .def (" compute" , &GeneralizedSelfAdjointEigenSolverVisitor::compute_proxy<MatrixType>,
35- bp::args (" self" , " A" , " B" ),
36+ .def (" compute" ,
37+ &GeneralizedSelfAdjointEigenSolverVisitor::compute_proxy<
38+ MatrixType>,
39+ bp::args (" self" , " A" , " B" ),
3640 " Computes generalized eigendecomposition of given matrix pencil. " ,
3741 bp::return_self<>())
3842 .def (" compute" ,
3943 (Solver &
4044 (Solver::*)(const MatrixType& A, const MatrixType& B, int )) &
4145 Solver::compute,
4246 bp::args (" self" , " A" , " B" , " options" ),
43- " Computes generalized eigendecomposition of given matrix pencil." , bp::return_self<>());
47+ " Computes generalized eigendecomposition of given matrix pencil." ,
48+ bp::return_self<>());
4449 }
4550
4651 static void expose () {
@@ -50,18 +55,21 @@ struct GeneralizedSelfAdjointEigenSolverVisitor
5055 }
5156
5257 static void expose (const std::string& name) {
53- bp::class_<Solver, bp::bases<Eigen::SelfAdjointEigenSolver<MatrixType>>>(name.c_str (), bp::no_init)
58+ bp::class_<Solver, bp::bases<Eigen::SelfAdjointEigenSolver<MatrixType>>>(
59+ name.c_str (), bp::no_init)
5460 .def (GeneralizedSelfAdjointEigenSolverVisitor ())
5561 .def (IdVisitor<Solver>());
5662 }
5763
5864 private:
5965 template <typename MatrixType>
60- static Solver& compute_proxy (Solver& self, const MatrixType& A, const MatrixType& B) {
66+ static Solver& compute_proxy (Solver& self, const MatrixType& A,
67+ const MatrixType& B) {
6168 return self.compute (A, B);
6269 }
6370};
6471
6572} // namespace eigenpy
6673
67- #endif // ifndef __eigenpy_decompositions_generalized_self_adjoint_eigen_solver_hpp__
74+ #endif // ifndef
75+ // __eigenpy_decompositions_generalized_self_adjoint_eigen_solver_hpp__
0 commit comments