add jacobiSvd() method, update test & docs

This commit is contained in:
Benoit Jacob
2010-10-17 09:40:52 -04:00
parent cd3a9d1ccb
commit 8356bc8d06
4 changed files with 30 additions and 2 deletions

View File

@@ -10,6 +10,6 @@ int main()
cout << "Here is the matrix A:\n" << A << endl;
VectorXf b = VectorXf::Random(3);
cout << "Here is the right hand side b:\n" << b << endl;
JacobiSVD<MatrixXf> svd(A, ComputeThinU | ComputeThinV);
cout << "The least-squares solution is:\n" << svd.solve(b) << endl;
cout << "The least-squares solution is:\n"
<< A.jacobiSvd(ComputeThinU | ComputeThinV).solve(b) << endl;
}