@@ -52,7 +52,7 @@ namespace tsid
5252 error = se3::log6 (Mdes.inverse () * M);
5353 }
5454
55- void solveWithDampingFromSvd (Eigen::JacobiSVD<Eigen::MatrixXd::PlainObject > & svd,
55+ void solveWithDampingFromSvd (Eigen::JacobiSVD<Eigen::MatrixXd> & svd,
5656 ConstRefVector b,
5757 RefVector sol, double damping)
5858 {
@@ -77,7 +77,7 @@ namespace tsid
7777 RefVector sol, double damping)
7878 {
7979 assert (A.rows ()==b.size ());
80- Eigen::JacobiSVD<typename Eigen::MatrixXd::PlainObject > svd (A.rows (), A.cols ());
80+ Eigen::JacobiSVD<Eigen::MatrixXd> svd (A.rows (), A.cols ());
8181 svd.compute (A, Eigen::ComputeThinU | Eigen::ComputeThinV);
8282
8383 solveWithDampingFromSvd (svd, b, sol, damping);
@@ -89,12 +89,12 @@ namespace tsid
8989 unsigned int computationOptions)
9090
9191 {
92- Eigen::JacobiSVD<Eigen::MatrixXd::PlainObject > svdDecomposition (A.rows (), A.cols ());
92+ Eigen::JacobiSVD<Eigen::MatrixXd> svdDecomposition (A.rows (), A.cols ());
9393 pseudoInverse (A, svdDecomposition, Apinv, tolerance, computationOptions);
9494 }
9595
9696 void pseudoInverse (ConstRefMatrix A,
97- Eigen::JacobiSVD<Eigen::MatrixXd::PlainObject> & svdDecomposition,
97+ Eigen::JacobiSVD<Eigen::MatrixXd> & svdDecomposition,
9898 RefMatrix Apinv,
9999 double tolerance,
100100 unsigned int computationOptions)
@@ -106,7 +106,7 @@ namespace tsid
106106 }
107107
108108 void pseudoInverse (ConstRefMatrix A,
109- Eigen::JacobiSVD<Eigen::MatrixXd::PlainObject> & svdDecomposition,
109+ Eigen::JacobiSVD<Eigen::MatrixXd> & svdDecomposition,
110110 RefMatrix Apinv,
111111 double tolerance,
112112 double * nullSpaceBasisOfA,
@@ -118,7 +118,7 @@ namespace tsid
118118 if (computationOptions == 0 ) return ; // if no computation options we cannot compute the pseudo inverse
119119 svdDecomposition.compute (A, computationOptions);
120120
121- JacobiSVD<MatrixXd::PlainObject >::SingularValuesType singularValues = svdDecomposition.singularValues ();
121+ JacobiSVD<MatrixXd>::SingularValuesType singularValues = svdDecomposition.singularValues ();
122122 long int singularValuesSize = singularValues.size ();
123123 int rank = 0 ;
124124 for (long int idx = 0 ; idx < singularValuesSize; idx++) {
@@ -140,7 +140,7 @@ namespace tsid
140140 }
141141
142142 void dampedPseudoInverse (ConstRefMatrix A,
143- Eigen::JacobiSVD<Eigen::MatrixXd::PlainObject >& svdDecomposition,
143+ Eigen::JacobiSVD<Eigen::MatrixXd>& svdDecomposition,
144144 RefMatrix Apinv,
145145 double tolerance,
146146 double dampingFactor,
@@ -153,7 +153,7 @@ namespace tsid
153153 if (computationOptions == 0 ) return ; // if no computation options we cannot compute the pseudo inverse
154154 svdDecomposition.compute (A, computationOptions);
155155
156- JacobiSVD<MatrixXd::PlainObject >::SingularValuesType singularValues = svdDecomposition.singularValues ();
156+ JacobiSVD<MatrixXd>::SingularValuesType singularValues = svdDecomposition.singularValues ();
157157
158158 // rank will be used for the null space basis.
159159 // not sure if this is correct
@@ -178,13 +178,13 @@ namespace tsid
178178 }
179179 }
180180
181- void nullSpaceBasisFromDecomposition (const Eigen::JacobiSVD<Eigen::MatrixXd::PlainObject >& svdDecomposition,
181+ void nullSpaceBasisFromDecomposition (const Eigen::JacobiSVD<Eigen::MatrixXd>& svdDecomposition,
182182 double tolerance,
183183 double * nullSpaceBasisMatrix,
184184 int &rows, int &cols)
185185 {
186186 using namespace Eigen ;
187- JacobiSVD<MatrixXd::PlainObject >::SingularValuesType singularValues = svdDecomposition.singularValues ();
187+ JacobiSVD<MatrixXd>::SingularValuesType singularValues = svdDecomposition.singularValues ();
188188 int rank = 0 ;
189189 for (int idx = 0 ; idx < singularValues.size (); idx++) {
190190 if (tolerance > 0 && singularValues (idx) > tolerance) {
@@ -195,7 +195,7 @@ namespace tsid
195195
196196 }
197197
198- void nullSpaceBasisFromDecomposition (const Eigen::JacobiSVD<Eigen::MatrixXd::PlainObject > & svdDecomposition,
198+ void nullSpaceBasisFromDecomposition (const Eigen::JacobiSVD<Eigen::MatrixXd> & svdDecomposition,
199199 int rank,
200200 double * nullSpaceBasisMatrix,
201201 int &rows, int &cols)
0 commit comments