diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-10-17 09:40:52 -0400 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-10-17 09:40:52 -0400 |
commit | 8356bc8d067d0f291284b256c515b1be0766856c (patch) | |
tree | a8dec076bc6fc541e45d305cf5cc73e270c21def /doc/examples | |
parent | cd3a9d1ccba8547378e993538d3347705ad950f1 (diff) |
add jacobiSvd() method, update test & docs
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/TutorialLinAlgSVDSolve.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/TutorialLinAlgSVDSolve.cpp b/doc/examples/TutorialLinAlgSVDSolve.cpp index c75779d5f..9fbc031de 100644 --- a/doc/examples/TutorialLinAlgSVDSolve.cpp +++ b/doc/examples/TutorialLinAlgSVDSolve.cpp @@ -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; } |