@@ -24,26 +24,13 @@ struct JacobiSVDVisitor
2424 template <class PyClass >
2525 void visit (PyClass &cl) const {
2626 cl.def (bp::init<>(bp::arg (" self" ), " Default constructor" ))
27- .def (bp::init<Eigen::DenseIndex, Eigen::DenseIndex>(
28- bp::args (" self" , " rows" , " cols" ),
29- " Default Constructor with memory preallocation. " ))
30- .def (bp::init<Eigen::DenseIndex, Eigen::DenseIndex, unsigned int >(
27+ .def (bp::init<Eigen::DenseIndex, Eigen::DenseIndex,
28+ bp::optional<unsigned int >>(
3129 bp::args (" self" , " rows" , " cols" , " computationOptions " ),
32- " Default Constructor with memory preallocation. \n\n "
33- " Like the default constructor but with preallocation of the "
34- " internal "
35- " data according to the specified problem size and the "
36- " computationOptions. " ))
37- .def (bp::init<MatrixType>(
38- bp::args (" self" , " matrix" ),
39- " Constructor performing the decomposition of given matrix. " ))
40- .def (bp::init<MatrixType, unsigned int >(
30+ " Default Constructor with memory preallocation." ))
31+ .def (bp::init<MatrixType, bp::optional<unsigned int >>(
4132 bp::args (" self" , " matrix" , " computationOptions " ),
42- " Constructor performing the decomposition of given matrix. \n\n "
43- " One cannot request unitiaries using both the Options template "
44- " parameter "
45- " and the constructor. If possible, prefer using the Options "
46- " template parameter." ))
33+ " Constructor performing the decomposition of given matrix." ))
4734
4835 .def (" cols" , &JacobiSVD::cols, bp::arg (" self" ),
4936 " Returns the number of columns. " )
0 commit comments