@@ -29,10 +29,6 @@ struct TridiagonalizationVisitor : public boost::python::def_visitor<
2929 " Constructor; computes tridiagonal "
3030 " decomposition of given matrix. " ))
3131
32- .def (" compute" , &TridiagonalizationVisitor::compute_proxy<MatrixType>,
33- bp::args (" self" , " matrix" ),
34- " Computes tridiagonal decomposition of given matrix. " ,
35- bp::return_self<>())
3632 .def (
3733 " compute" ,
3834 (Solver & (Solver::*)(const Eigen::EigenBase<MatrixType>& matrix)) &
@@ -41,22 +37,21 @@ struct TridiagonalizationVisitor : public boost::python::def_visitor<
4137 " Computes tridiagonal decomposition of given matrix. " ,
4238 bp::return_self<>())
4339
44- .def (" diagonal" , &Solver::diagonal, bp::arg (" self" ),
45- " Returns the diagonal of the tridiagonal matrix T in the "
46- " decomposition. " )
47-
4840 .def (" householderCoefficients" , &Solver::householderCoefficients,
4941 bp::arg (" self" ), " Returns the Householder coefficients. " )
42+ .def (" packedMatrix" , &Solver::packedMatrix, bp::arg (" self" ),
43+ " Returns the internal representation of the decomposition. " ,
44+ bp::return_value_policy<bp::copy_const_reference>())
5045
46+ // TODO: Expose so that the return type are convertible to np arrays
5147 .def (" matrixQ" , &Solver::matrixQ, bp::arg (" self" ),
5248 " Returns the unitary matrix Q in the decomposition. " )
5349 .def (" matrixT" , &Solver::matrixT, bp::arg (" self" ),
5450 " Returns the unitary matrix T in the decomposition. " )
5551
56- .def (" packedMatrix" , &Solver::packedMatrix, bp::arg (" self" ),
57- " Returns the internal representation of the decomposition. " ,
58- bp::return_value_policy<bp::copy_const_reference>())
59-
52+ .def (" diagonal" , &Solver::diagonal, bp::arg (" self" ),
53+ " Returns the diagonal of the tridiagonal matrix T in the "
54+ " decomposition. " )
6055 .def (" subDiagonal" , &Solver::subDiagonal, bp::arg (" self" ),
6156 " Returns the subdiagonal of the tridiagonal matrix T in the "
6257 " decomposition." );
@@ -73,13 +68,6 @@ struct TridiagonalizationVisitor : public boost::python::def_visitor<
7368 .def (TridiagonalizationVisitor ())
7469 .def (IdVisitor<Solver>());
7570 }
76-
77- private:
78- template <typename MatrixType>
79- static Solver& compute_proxy (Solver& self,
80- const Eigen::EigenBase<MatrixType>& matrix) {
81- return self.compute (matrix);
82- }
8371};
8472
8573} // namespace eigenpy
0 commit comments