mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Revert "Update SVD Module to allow specifying computation options with a...
This commit is contained in:
committed by
David Tellenbach
parent
4dd126c630
commit
085c2fc5d5
@@ -101,8 +101,8 @@ m1.colPivHouseholderQr();
|
||||
?geqp3
|
||||
\endcode</td></tr>
|
||||
<tr class="alt"><td>Singular value decomposition \n \c EIGEN_USE_LAPACKE </td><td>\code
|
||||
JacobiSVD<MatrixXd, ComputeThinV> svd;
|
||||
svd.compute(m1);
|
||||
JacobiSVD<MatrixXd> svd;
|
||||
svd.compute(m1, ComputeThinV);
|
||||
\endcode</td><td>\code
|
||||
?gesvd
|
||||
\endcode</td></tr>
|
||||
|
||||
@@ -11,5 +11,5 @@ int main()
|
||||
VectorXf b = VectorXf::Random(3);
|
||||
cout << "Here is the right hand side b:\n" << b << endl;
|
||||
cout << "The least-squares solution is:\n"
|
||||
<< A.template bdcSvd<ComputeThinU | ComputeThinV>().solve(b) << endl;
|
||||
<< A.bdcSvd(ComputeThinU | ComputeThinV).solve(b) << endl;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
MatrixXf m = MatrixXf::Random(3,2);
|
||||
cout << "Here is the matrix m:" << endl << m << endl;
|
||||
JacobiSVD<MatrixXf, ComputeThinU | ComputeThinV> svd(m);
|
||||
JacobiSVD<MatrixXf> svd(m, ComputeThinU | ComputeThinV);
|
||||
cout << "Its singular values are:" << endl << svd.singularValues() << endl;
|
||||
cout << "Its left singular vectors are the columns of the thin U matrix:" << endl << svd.matrixU() << endl;
|
||||
cout << "Its right singular vectors are the columns of the thin V matrix:" << endl << svd.matrixV() << endl;
|
||||
|
||||
Reference in New Issue
Block a user